Skip to content

Commit ce3ba8f

Browse files
committed
Blew away my DB. Fixed a few broken tests due to refactor/renames.
1 parent d8f4426 commit ce3ba8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/cases/migration_test_sqlserver.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ class MigrationTestSQLServer < ActiveRecord::TestCase
4545

4646
it 'not drop the default contraint if just renaming' do
4747
find_default = lambda do
48-
connection.execute_procedure(:sp_helpconstraint, 'defaults', 'nomsg').select do |row|
49-
row['constraint_type'] == "DEFAULT on column decimal_number"
48+
connection.execute_procedure(:sp_helpconstraint, 'sst_string_defaults', 'nomsg').select do |row|
49+
row['constraint_type'] == "DEFAULT on column string_with_pretend_paren_three"
5050
end.last
5151
end
5252
default_before = find_default.call
53-
connection.change_column :defaults, :decimal_number, :decimal, precision: 4
53+
connection.change_column :sst_string_defaults, :string_with_pretend_paren_three, :string, limit: 255
5454
default_after = find_default.call
5555
assert default_after
5656
assert_equal default_before['constraint_keys'], default_after['constraint_keys']

test/cases/schema_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SchemaTestSQLServer < ActiveRecord::TestCase
55
describe 'When table is dbo schema' do
66

77
it 'find primary key for tables with odd schema' do
8-
connection.primary_key('natural_pk_data').must_equal 'legacy_id'
8+
connection.primary_key('sst_natural_pk_data').must_equal 'legacy_id'
99
end
1010

1111
end

0 commit comments

Comments
 (0)