Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9 compat: account for different String#hash

  • Loading branch information...
commit 4d76bad387036d96a955eae7c260a9633e915d11 1 parent bb33432
@jeremy jeremy authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/test/template/asset_tag_helper_test.rb
View
3  actionpack/test/template/asset_tag_helper_test.rb
@@ -335,8 +335,9 @@ def test_caching_javascript_include_tag_when_caching_on_and_using_subdirectory
ActionController::Base.asset_host = 'http://a%d.example.com'
ActionController::Base.perform_caching = true
+ hash = '/javascripts/cache/money.js'.hash % 4
assert_dom_equal(
- %(<script src="http://a3.example.com/javascripts/cache/money.js" type="text/javascript"></script>),
+ %(<script src="http://a#{hash}.example.com/javascripts/cache/money.js" type="text/javascript"></script>),
javascript_include_tag(:all, :cache => "cache/money")
)
Please sign in to comment.
Something went wrong with that request. Please try again.