diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-05 16:46:52 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-05 16:46:52 -0300 |
commit | 2bb19fa7392fd572beb6c0a9b19af70780c36e74 (patch) | |
tree | 55e616f6b8721336f5f46bda5bb085e4592bf418 /actionpack/lib/action_dispatch/testing | |
parent | 3f720d580f019f79f93f53733f03f28651a37031 (diff) | |
download | rails-2bb19fa7392fd572beb6c0a9b19af70780c36e74.tar.gz rails-2bb19fa7392fd572beb6c0a9b19af70780c36e74.tar.bz2 rails-2bb19fa7392fd572beb6c0a9b19af70780c36e74.zip |
Message doesn't need to be optional
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index a0b9c9e5ba..96864ab3c5 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -208,10 +208,10 @@ module ActionDispatch request end - def fail_on(exception_class, msg=nil) + def fail_on(exception_class, message) yield rescue exception_class => e - raise Minitest::Assertion, msg || e.message + raise Minitest::Assertion, message || e.message end end end |