Permalink
Browse files

Ruby 1.9 compat: account for different String#hash

  • Loading branch information...
1 parent bb33432 commit 4d76bad387036d96a955eae7c260a9633e915d11 @jeremy jeremy committed Jul 15, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 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")
)

0 comments on commit 4d76bad

Please sign in to comment.