From 3a9d21c644607b492f17f9167fe30cf80e53ab45 Mon Sep 17 00:00:00 2001 From: Ken Collins Date: Mon, 2 Jan 2012 08:57:35 -0500 Subject: [PATCH] Make sure all tests with Identity Map on. --- test/cases/showplan_test_sqlserver.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/cases/showplan_test_sqlserver.rb b/test/cases/showplan_test_sqlserver.rb index cdd11b59d..2016223a3 100644 --- a/test/cases/showplan_test_sqlserver.rb +++ b/test/cases/showplan_test_sqlserver.rb @@ -14,9 +14,8 @@ class ShowplanTestSqlserver < ActiveRecord::TestCase end should 'from prepared statement' do - car = Car.first plan = capture_logger do - with_threshold(0) { Car.find(car.id) } + with_threshold(0) { Car.find(1) } end assert plan.include?('EXPLAIN for: SELECT TOP (1) [cars].* FROM [cars] WHERE [cars].[id] = @0 [["id", 1]]') assert plan.include?("Clustered Index Seek"), 'make sure we do not showplan the sp_executesql'