File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments