提交 4d76bad3 编写于 作者: J Jeremy Kemper

Ruby 1.9 compat: account for different String#hash

上级 bb33432b
......@@ -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")
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册