epochwolf / litsocial

A literature website. A replacement of singleforest.com.
http://staging.litsocial.com
GNU Affero General Public License v3.0
5 stars 2 forks source link

Update test/integration/admin_test.rb #1

Closed Spaceghost closed 11 years ago

Spaceghost commented 11 years ago

Pull multiple assertion test into multiple tests.

If any of the routes fails with the previous test, you only see one at a time. This way you see all failing routes, which may help locate the real problem a lot faster. One assertion per test.

epochwolf commented 11 years ago

The reason the original file has so much code duplication is so I know which assertions are failing. Having each assertion on it's own line lets me navigation immediately to the failure and figure out what I need to correct.