diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-05 16:47:57 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-09-05 16:47:57 -0300 |
commit | 31bfcdc77ca0d8cec9b5fe513bdc6f05814dd4f1 (patch) | |
tree | 235dbd10bc8df618eb4526be7744a86135e6f6b1 /actionpack/lib/action_dispatch | |
parent | 67117f7c5d2ece5494191e937de91d353609e963 (diff) | |
download | rails-31bfcdc77ca0d8cec9b5fe513bdc6f05814dd4f1.tar.gz rails-31bfcdc77ca0d8cec9b5fe513bdc6f05814dd4f1.tar.bz2 rails-31bfcdc77ca0d8cec9b5fe513bdc6f05814dd4f1.zip |
:scissors:
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index 96864ab3c5..e06f7037c6 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -69,7 +69,7 @@ module ActionDispatch # # # Asserts that the generated route gives us our custom route # assert_generates "changesets/12", { controller: 'scm', action: 'show_diff', revision: "12" } - def assert_generates(expected_path, options, defaults={}, extras = {}, message=nil) + def assert_generates(expected_path, options, defaults={}, extras={}, message=nil) if expected_path =~ %r{://} fail_on(URI::InvalidURIError, message) do uri = URI.parse(expected_path) |