aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/README.rdoc
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2012-11-26 11:15:50 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2012-11-26 11:28:05 +0000
commitbe2a3b0a9319683e25ce06dda55b6d12a0c806ed (patch)
tree248a3fe090b38464e31e8d1c3add7a0f8cb80217 /activemodel/README.rdoc
parent3da164982817828aa5f7d9e2158c04ce40ee5f55 (diff)
downloadrails-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/README.rdoc')
0 files changed, 0 insertions, 0 deletions