aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-05 16:46:52 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-05 16:46:52 -0300
commit2bb19fa7392fd572beb6c0a9b19af70780c36e74 (patch)
tree55e616f6b8721336f5f46bda5bb085e4592bf418 /actionpack/lib/action_dispatch/testing
parent3f720d580f019f79f93f53733f03f28651a37031 (diff)
downloadrails-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.rb4
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