Skip to content

Commit 2f90025

Browse files
committed
[Appveyor] Ignore structure dumps till http://git.io/v3tBk
1 parent 17a9681 commit 2f90025

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/cases/helper_sqlserver.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

test/cases/rake_test_sqlserver.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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{\AUSE.*\z}
125127
filedata.wont_match %r{\AGO.*\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)

0 commit comments

Comments
 (0)