aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-08 01:17:57 -0700
committerJosé Valim <jose.valim@gmail.com>2011-10-08 01:17:57 -0700
commit11687382db08ec1523f71e485c48d6039de25324 (patch)
tree3fb648eca25f8ccc41fe2bd9893475147c2112f0
parent135a97af76c71d25dfa36f44d23d86a2c3fd1f0e (diff)
parent34d950b066e65a65a224334769f4f515d0b7e073 (diff)
downloadrails-11687382db08ec1523f71e485c48d6039de25324.tar.gz
rails-11687382db08ec1523f71e485c48d6039de25324.tar.bz2
rails-11687382db08ec1523f71e485c48d6039de25324.zip
Merge pull request #3249 from arunagw/query_cache_test_fix
Fixed BodyProxy.new for tests! for wrong argument
-rw-r--r--activerecord/test/cases/query_cache_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb
index 7feac2b920..b2429d631f 100644
--- a/activerecord/test/cases/query_cache_test.rb
+++ b/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