File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class << self
2020 def connection_mode_dblib? ; ActiveRecord ::Base . connection . instance_variable_get ( :@connection_options ) [ :mode ] == :dblib ; end
2121 def connection_mode_odbc? ; ActiveRecord ::Base . connection . instance_variable_get ( :@connection_options ) [ :mode ] == :odbc ; end
2222 def sqlserver_azure? ; ActiveRecord ::Base . connection . sqlserver_azure? ; end
23+ def host_windows? ; RbConfig ::CONFIG [ 'host_os' ] =~ /mswin|mingw/ ; end
2324 end
2425
2526
@@ -28,6 +29,7 @@ def sqlserver_azure? ; ActiveRecord::Base.connection.sqlserver_azure? ; end
2829 def connection_mode_dblib? ; self . class . connection_mode_dblib? ; end
2930 def connection_mode_odbc? ; self . class . connection_mode_odbc? ; end
3031 def sqlserver_azure? ; self . class . sqlserver_azure? ; end
32+ def host_windows? ; self . host_windows? ; end
3133
3234 def connection
3335 ActiveRecord ::Base . connection
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ class SQLServerRakeStructureDumpLoadTest < SQLServerRakeTest
120120 end
121121
122122 it 'dumps structure and accounts for defncopy oddities' do
123+ # CHANGED: [TinyTDS] When utilities are available http://git.io/v3tBk
124+ skip if host_windows?
123125 db_tasks . structure_dump configuration , filename
124126 filedata . wont_match %r{\A USE.*\z }
125127 filedata . wont_match %r{\A GO.*\z }
@@ -129,6 +131,8 @@ class SQLServerRakeStructureDumpLoadTest < SQLServerRakeTest
129131 end
130132
131133 it 'can load dumped structure' do
134+ # CHANGED: [TinyTDS] When utilities are available http://git.io/v3tBk
135+ skip if host_windows?
132136 db_tasks . structure_dump configuration , filename
133137 filedata . must_match %r{CREATE TABLE dbo\. users}
134138 db_tasks . purge ( configuration )
You can’t perform that action at this time.
0 commit comments