1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

6 commits

Author SHA1 Message Date
Rafael Mendonça França
67117f7c5d Add test to assert_recognizes with custom message 2014-09-05 16:47:00 -03:00
Earl St Sauver
31c3eec05d Propagate test messages through assert_routing helper, Fixes
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
2014-04-29 18:34:56 -07:00
David Chelimsky
dcce01132d Raise Assertion instead of RoutingError for routing assertion failures.
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 
2012-05-20 06:21:32 -05:00
Andrew White
9b4514c3b8 Copy literal route constraints to defaults - fixes and . 2012-05-11 07:29:17 +01:00
Matt Fawcett
d7bf930df5 Fix the assert_recognizes test method so that it works when there are
constraints on the querystring. Issue 
2012-02-24 13:16:31 +00:00
Andrew White
385be358cf Fix assert_recognizes with block constraints [ state:resolved] 2011-02-13 23:24:46 +00:00