aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/asset_tag_helper_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-22 16:03:39 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-27 11:19:19 -0300
commit2d274a520857b159bd4dd0206fc7cd09a9356b86 (patch)
tree62c107ac9193915763e0f79e5de26da09b9657cf /actionpack/test/template/asset_tag_helper_test.rb
parentbe9883b09d05b90c2422502f38ab69081e29e4ce (diff)
downloadrails-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/template/asset_tag_helper_test.rb')
-rw-r--r--actionpack/test/template/asset_tag_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb
index ec28d4442c..3abcdfbc1e 100644
--- a/actionpack/test/template/asset_tag_helper_test.rb
+++ b/actionpack/test/template/asset_tag_helper_test.rb
@@ -975,7 +975,7 @@ class AssetTagHelperNonVhostTest < ActionView::TestCase
def test_should_wildcard_asset_host_between_zero_and_four
@controller.config.asset_host = 'http://a%d.example.com'
- assert_match %r(http://a[0123].example.com/collaboration/hieraki/images/xml.png), image_path('xml.png')
+ assert_match(%r(http://a[0123].example.com/collaboration/hieraki/images/xml.png), image_path('xml.png'))
end
def test_asset_host_without_protocol_should_use_request_protocol