Fixed BodyProxy.new for tests! for wrong argument

This commit is contained in:
Arun Agrawal 2011-10-08 10:01:58 +05:30
parent 7f64e47277
commit 34d950b066
1 changed files with 1 additions and 1 deletions

View File

@ -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