diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-22 16:03:39 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:19 -0300 |
commit | 2d274a520857b159bd4dd0206fc7cd09a9356b86 (patch) | |
tree | 62c107ac9193915763e0f79e5de26da09b9657cf /actionpack/test/controller/action_pack_assertions_test.rb | |
parent | be9883b09d05b90c2422502f38ab69081e29e4ce (diff) | |
download | rails-2d274a520857b159bd4dd0206fc7cd09a9356b86.tar.gz rails-2d274a520857b159bd4dd0206fc7cd09a9356b86.tar.bz2 rails-2d274a520857b159bd4dd0206fc7cd09a9356b86.zip |
Use parentheses when using assert_match followed by a regexp to avoid warnings.
Diffstat (limited to 'actionpack/test/controller/action_pack_assertions_test.rb')
-rw-r--r-- | actionpack/test/controller/action_pack_assertions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb index 443191d4fa..a0092a9f73 100644 --- a/actionpack/test/controller/action_pack_assertions_test.rb +++ b/actionpack/test/controller/action_pack_assertions_test.rb @@ -314,7 +314,7 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase def test_redirect_url_match process :redirect_external assert @response.redirect? - assert_match /rubyonrails/, @response.redirect_url + assert_match(/rubyonrails/, @response.redirect_url) assert !/perloffrails/.match(@response.redirect_url) end |