Skip to content

Commit

Permalink
Fixed BodyProxy.new for tests! for wrong argument
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Oct 8, 2011
1 parent 7f64e47 commit 34d950b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/query_cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34d950b

Please sign in to comment.