Skip to content

Commit

Permalink
Make sure all tests with Identity Map on.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Jan 2, 2012
1 parent ea2e630 commit 3a9d21c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/cases/showplan_test_sqlserver.rb
Expand Up @@ -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'
Expand Down

0 comments on commit 3a9d21c

Please sign in to comment.