diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-11-26 11:15:50 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-11-26 11:28:05 +0000 |
commit | be2a3b0a9319683e25ce06dda55b6d12a0c806ed (patch) | |
tree | 248a3fe090b38464e31e8d1c3add7a0f8cb80217 /activemodel/test/cases/validations/i18n_validation_test.rb | |
parent | 3da164982817828aa5f7d9e2158c04ce40ee5f55 (diff) | |
download | rails-be2a3b0a9319683e25ce06dda55b6d12a0c806ed.tar.gz rails-be2a3b0a9319683e25ce06dda55b6d12a0c806ed.tar.bz2 rails-be2a3b0a9319683e25ce06dda55b6d12a0c806ed.zip |
Improve clarity of routing tests
Move the routes for each test inside the test method so that
it's easier to see which routes are applicable to which test.
To ensure that each test wasn't invalidated the changes were
done by first removing all of the routes, ensuring that all
of the tests failed and then adding the routes back to each
test one by one. One test for `assert_recognizes` was
removed as it wasn't actually testing the defined routes and
is now tested more thoroughly in routing_assertions_test.rb.
One downside is that the test suite takes about 1s longer
due to having to using `method_missing` for handling the url
helpers as using `include url_helpers` isn't isolated
for each test.
Diffstat (limited to 'activemodel/test/cases/validations/i18n_validation_test.rb')
0 files changed, 0 insertions, 0 deletions