Skip to content

Commit 3a9d21c

Browse files
committed
Make sure all tests with Identity Map on.
1 parent ea2e630 commit 3a9d21c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/cases/showplan_test_sqlserver.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ class ShowplanTestSqlserver < ActiveRecord::TestCase
1414
end
1515

1616
should 'from prepared statement' do
17-
car = Car.first
1817
plan = capture_logger do
19-
with_threshold(0) { Car.find(car.id) }
18+
with_threshold(0) { Car.find(1) }
2019
end
2120
assert plan.include?('EXPLAIN for: SELECT TOP (1) [cars].* FROM [cars] WHERE [cars].[id] = @0 [["id", 1]]')
2221
assert plan.include?("Clustered Index Seek"), 'make sure we do not showplan the sp_executesql'

0 commit comments

Comments
 (0)