File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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{\A USE.*\z }
143145 _ ( filedata ) . wont_match %r{\A GO.*\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
You can’t perform that action at this time.
0 commit comments