Skip to content
Browse files

Fixed BodyProxy.new for tests!

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

Please sign in to comment.
Something went wrong with that request. Please try again.