Skip to content

Commit 3ad3228

Browse files
committed
Fix tests following FreeTDS release
1 parent a9a9f0a commit 3ad3228

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/cases/rake_test_sqlserver.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,22 @@ class SQLServerRakeStructureDumpLoadTest < SQLServerRakeTest
138138

139139
it "dumps structure and accounts for defncopy oddities" do
140140
skip "debug defncopy on windows later" if host_windows?
141+
141142
quietly { db_tasks.structure_dump configuration, filename }
143+
142144
_(filedata).wont_match %r{\AUSE.*\z}
143145
_(filedata).wont_match %r{\AGO.*\z}
144-
_(filedata).must_match %r{email\s+nvarchar\(4000\)}
145-
_(filedata).must_match %r{background1\s+nvarchar\(max\)}
146-
_(filedata).must_match %r{background2\s+text\s+}
146+
_(filedata).must_match %r{\[email\]\s+nvarchar\(4000\)}
147+
_(filedata).must_match %r{\[background1\]\s+nvarchar\(max\)}
148+
_(filedata).must_match %r{\[background2\]\s+text\s+}
147149
end
148150

149151
it "can load dumped structure" do
150152
skip "debug defncopy on windows later" if host_windows?
153+
151154
quietly { db_tasks.structure_dump configuration, filename }
152-
_(filedata).must_match %r{CREATE TABLE dbo\.users}
155+
156+
_(filedata).must_match %r{CREATE TABLE \[dbo\]\.\[users\]}
153157
db_tasks.purge(configuration)
154158
_(connection.tables).wont_include "users"
155159
db_tasks.load_schema db_config, :sql, filename

0 commit comments

Comments
 (0)