@@ -54,10 +54,10 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
5454 end
5555
5656 it "return true to insert sql query for inserts only" do
57- assert connection . send ( :insert_sql? , "INSERT..." )
57+ assert connection . send ( :insert_sql? , "INSERT..." )
5858 assert connection . send ( :insert_sql? , "EXEC sp_executesql N'INSERT INTO [fk_test_has_fks] ([fk_id]) VALUES (@0); SELECT CAST(SCOPE_IDENTITY() AS bigint) AS Ident', N'@0 int', @0 = 0" )
59- assert !connection . send ( :insert_sql? , "UPDATE..." )
60- assert !connection . send ( :insert_sql? , "SELECT..." )
59+ assert !connection . send ( :insert_sql? , "UPDATE..." )
60+ assert !connection . send ( :insert_sql? , "SELECT..." )
6161 end
6262
6363 it "return unquoted table name object from basic INSERT UPDATE and SELECT statements" do
@@ -155,17 +155,17 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
155155 end
156156
157157 it "return quoted table_name to #query_requires_identity_insert? when INSERT sql contains id column" do
158- assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql )
159- assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unquoted )
160- assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unordered )
161- assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_sp )
162- assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unquoted_sp )
163- assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unordered_sp )
158+ assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql )
159+ assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unquoted )
160+ assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unordered )
161+ assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_sp )
162+ assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unquoted_sp )
163+ assert_equal "funny_jokes" , connection . send ( :query_requires_identity_insert? , @identity_insert_sql_unordered_sp )
164164 end
165165
166166 it "return false to #query_requires_identity_insert? for normal SQL" do
167167 [ basic_insert_sql , basic_update_sql , basic_select_sql ] . each do |sql |
168- assert !connection . send ( :query_requires_identity_insert? , sql ) , "SQL was #{ sql } "
168+ assert !connection . send ( :query_requires_identity_insert? , sql ) , "SQL was #{ sql } "
169169 end
170170 end
171171
@@ -227,7 +227,7 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
227227 end
228228
229229 it "NOT ALLOW by default the deletion of a referenced parent" do
230- SSTestHasPk . connection . disable_referential_integrity { }
230+ SSTestHasPk . connection . disable_referential_integrity { }
231231 assert_raise ( ActiveRecord ::StatementInvalid ) { @parent . destroy }
232232 end
233233
@@ -237,7 +237,7 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
237237
238238 it "again NOT ALLOW deletion of referenced parent after #disable_referential_integrity block" do
239239 assert_raise ( ActiveRecord ::StatementInvalid ) do
240- SSTestHasPk . connection . disable_referential_integrity { }
240+ SSTestHasPk . connection . disable_referential_integrity { }
241241 @parent . destroy
242242 end
243243 end
@@ -318,27 +318,27 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
318318 end
319319
320320 it "not contain system views" do
321- systables = [ "sysconstraints" , "syssegments" ]
321+ systables = [ "sysconstraints" , "syssegments" ]
322322 systables . each do |systable |
323323 assert !connection . views . include? ( systable ) , "This systable #{ systable } should not be in the views array."
324324 end
325325 end
326326
327327 it "allow the connection#view_information method to return meta data on the view" do
328- view_info = connection . send ( :view_information , "sst_customers_view" )
328+ view_info = connection . send ( :view_information , "sst_customers_view" )
329329 assert_equal ( "sst_customers_view" , view_info [ "TABLE_NAME" ] )
330330 assert_match ( /CREATE VIEW sst_customers_view/ , view_info [ "VIEW_DEFINITION" ] )
331331 end
332332
333333 it "allow the connection#view_table_name method to return true table_name for the view" do
334- assert_equal "customers" , connection . send ( :view_table_name , "sst_customers_view" )
335- assert_equal "topics" , connection . send ( :view_table_name , "topics" ) , "No view here, the same table name should come back."
334+ assert_equal "customers" , connection . send ( :view_table_name , "sst_customers_view" )
335+ assert_equal "topics" , connection . send ( :view_table_name , "topics" ) , "No view here, the same table name should come back."
336336 end
337337
338338 # With same column names
339339
340340 it "have matching column objects" do
341- columns = [ "id" , "name" , "balance" ]
341+ columns = [ "id" , "name" , "balance" ]
342342 assert !SSTestCustomersView . columns . blank?
343343 assert_equal columns . size , SSTestCustomersView . columns . size
344344 columns . each do |colname |
@@ -365,7 +365,7 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
365365 # With aliased column names
366366
367367 it "have matching column objects" do
368- columns = [ "id" , "pretend_null" ]
368+ columns = [ "id" , "pretend_null" ]
369369 assert !SSTestStringDefaultsView . columns . blank?
370370 assert_equal columns . size , SSTestStringDefaultsView . columns . size
371371 columns . each do |colname |
0 commit comments