Permalink
Browse files

Fixed BodyProxy.new for tests! for wrong argument

  • Loading branch information...
1 parent 7f64e47 commit 34d950b066e65a65a224334769f4f515d0b7e073 @arunagw arunagw committed Oct 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/query_cache_test.rb
@@ -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

0 comments on commit 34d950b

Please sign in to comment.