Skip to content

Commit 7589e90

Browse files
committed
Fix showplan test
1 parent 16c3949 commit 7589e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cases/showplan_test_sqlserver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class ShowplanTestSQLServer < ActiveRecord::TestCase
2121

2222
it 'from prepared statement' do
2323
plan = Car.where(name: ',').limit(1).explain
24-
_(plan).must_include " SELECT [cars].* FROM [cars] WHERE [cars].[name]"
24+
_(plan).must_include "SELECT [cars].* FROM [cars] WHERE [cars].[name]"
2525
_(plan).must_include "TOP EXPRESSION", 'make sure we do not showplan the sp_executesql'
2626
_(plan).must_include "Clustered Index Scan", 'make sure we do not showplan the sp_executesql'
2727
end
2828

2929
it 'from array condition using index' do
3030
plan = Car.where(id: [1, 2]).explain
31-
_(plan).must_include " SELECT [cars].* FROM [cars] WHERE [cars].[id] IN (1, 2)"
31+
_(plan).must_include "SELECT [cars].* FROM [cars] WHERE [cars].[id] IN (1, 2)"
3232
_(plan).must_include "Clustered Index Seek", 'make sure we do not showplan the sp_executesql'
3333
end
3434

0 commit comments

Comments
 (0)