Skip to content

Commit 6b4675b

Browse files
committed
Fix test for DDL transactions. (better regex for DDL specific message)
1 parent 1072c3a commit 6b4675b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/migration_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MigrationTestSqlserver < ActiveRecord::TestCase
2121
begin
2222
ActiveRecord::Migrator.up(SQLSERVER_MIGRATIONS_ROOT+'/transaction_table')
2323
rescue Exception => e
24-
assert_match %r|migrations canceled|, e.message
24+
assert_match %r|this and all later migrations canceled|, e.message
2525
end
2626
assert_does_not_contain @trans_test_table1, @connection.tables
2727
assert_does_not_contain @trans_test_table2, @connection.tables

0 commit comments

Comments
 (0)