提交 11687382 编写于 作者: J José Valim

Merge pull request #3249 from arunagw/query_cache_test_fix

Fixed BodyProxy.new for tests! for wrong argument
......@@ -237,7 +237,7 @@ class QueryCacheBodyProxyTest < ActiveRecord::TestCase
test "is polite to it's body and responds to it" do
body = Class.new(String) { def to_path; "/path"; end }.new
proxy = ActiveRecord::QueryCache::BodyProxy.new(nil, body)
proxy = ActiveRecord::QueryCache::BodyProxy.new(nil, body, ActiveRecord::Base.connection_id)
assert proxy.respond_to?(:to_path)
assert_equal proxy.to_path, "/path"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册