aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_assertions_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add test to assert_recognizes with custom messageRafael Mendonça França2014-09-051-1/+9
|
* Propagate test messages through assert_routing helper, Fixes #14908Earl St Sauver2014-04-291-0/+8
| | | | | | | | | | | | | | | assert_routing was not raising the message passed into the assertion violation that it raised. This change propagates messages through the on_fail error. This fixes this error: https://github.com/rails/rails/issues/14908 A test case for this issue is located here. https://github.com/estsauver/test14908 To see that test case fail in the example app, just run ruby -Itest test/controllers/guests_controller_test.rb
* Raise Assertion instead of RoutingError for routing assertion failures.David Chelimsky2012-05-201-6/+6
| | | | | | | | | | | | | Before this change, assert_recognizes, assert_generates, and assert_routing raised ActionController::RoutingError when they failed to recognize the route. This commit changes them to raise Assertion instead. This aligns with convention for logical failures, and supports reporting tools that care about the difference between logical failures and errors e.g. the summary at the end of a test run. - Fixes #5899
* Copy literal route constraints to defaults - fixes #3571 and #6224.Andrew White2012-05-111-3/+3
|
* Fix the assert_recognizes test method so that it works when there areMatt Fawcett2012-02-241-0/+12
| | | | constraints on the querystring. Issue #2781
* Fix assert_recognizes with block constraints [#5805 state:resolved]Andrew White2011-02-131-0/+103