mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
transactional migration test-case was broken.
The cleanup commit a85625d
broke the test-case.
The schema was no longer modified so there was no
way to check that the rollback actually happened.
This commit is contained in:
parent
09d1fb25c3
commit
f1241ef959
1 changed files with 7 additions and 3 deletions
|
@ -239,9 +239,13 @@ class MigrationTest < ActiveRecord::TestCase
|
|||
|
||||
assert_not Person.column_methods_hash.include?(:last_name)
|
||||
|
||||
migration = Struct.new(:name, :version) {
|
||||
def migrate(x); raise 'Something broke'; end
|
||||
}.new('zomg', 100)
|
||||
migration = Class.new(ActiveRecord::Migration) {
|
||||
def version; 100 end
|
||||
def migrate(x)
|
||||
add_column "people", "last_name", :string
|
||||
raise 'Something broke'
|
||||
end
|
||||
}.new
|
||||
|
||||
migrator = ActiveRecord::Migrator.new(:up, [migration], 100)
|
||||
|
||||
|
|
Loading…
Reference in a new issue