From 2bb19fa7392fd572beb6c0a9b19af70780c36e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 5 Sep 2014 16:46:52 -0300 Subject: Message doesn't need to be optional --- actionpack/lib/action_dispatch/testing/assertions/routing.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch') 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 -- cgit v1.2.3