File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,12 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
160
160
_ ( output . scan ( 't.integer "unique_field"' ) . length ) . must_equal ( 1 )
161
161
end
162
162
163
- it "schemas are dumped and tables names include non-default schema" do
163
+ it "schemas are dumped and tables names only include non-default schema" do
164
164
stream = StringIO . new
165
165
ActiveRecord ::SchemaDumper . dump ( ActiveRecord ::Base . connection_pool , stream )
166
166
generated_schema = stream . string
167
167
168
+ # Only generate non-default schemas. Default schema is 'dbo'.
168
169
assert_not_includes generated_schema , 'create_schema "dbo"'
169
170
assert_includes generated_schema , 'create_schema "test"'
170
171
assert_includes generated_schema , 'create_schema "test2"'
You can’t perform that action at this time.
0 commit comments