diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-28 20:49:41 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-31 13:58:52 -0300 |
commit | 5294ad82c6096edba06f4111325d6b0e6845d9f0 (patch) | |
tree | cec386a00a691b26906ce4e335f49da26ecf6938 /actionpack/test/journey/path | |
parent | 6c0013f7cda487de101d47376b9f1355ff1ef095 (diff) | |
download | rails-5294ad82c6096edba06f4111325d6b0e6845d9f0.tar.gz rails-5294ad82c6096edba06f4111325d6b0e6845d9f0.tar.bz2 rails-5294ad82c6096edba06f4111325d6b0e6845d9f0.zip |
Alias refute methods to assert_not and perfer assert_not on tests
Diffstat (limited to 'actionpack/test/journey/path')
-rw-r--r-- | actionpack/test/journey/path/pattern_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/journey/path/pattern_test.rb b/actionpack/test/journey/path/pattern_test.rb index 0f2d0d44c0..a42a29b4ee 100644 --- a/actionpack/test/journey/path/pattern_test.rb +++ b/actionpack/test/journey/path/pattern_test.rb @@ -88,7 +88,7 @@ module ActionDispatch path = Pattern.new strexp assert_match(path, '/page/tender') assert_match(path, '/page/love') - refute_match(path, '/page/loving') + assert_no_match(path, '/page/loving') end def test_optional_names @@ -110,7 +110,7 @@ module ActionDispatch ) path = Pattern.new strexp assert_match(path, '/123') - refute_match(path, '/') + assert_no_match(path, '/') end def test_to_regexp_with_group @@ -122,7 +122,7 @@ module ActionDispatch path = Pattern.new strexp assert_match(path, '/page/tender') assert_match(path, '/page/love') - refute_match(path, '/page/loving') + assert_no_match(path, '/page/loving') end def test_ast_sets_regular_expressions @@ -189,7 +189,7 @@ module ActionDispatch path = Pattern.new strexp assert_match(path, '/page/TENDER/aaron') assert_match(path, '/page/loVE/aaron') - refute_match(path, '/page/loVE/AAron') + assert_no_match(path, '/page/loVE/AAron') end def test_to_regexp_with_strexp @@ -210,7 +210,7 @@ module ActionDispatch path = Pattern.new '/:controller(/:action(/:id(.:format)))' uri = 'content' - refute path =~ uri + assert_not path =~ uri end def test_match_controller |