mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #29524 from y-yagi/do_not_use_private_api_in_bug_report_templates
Do not use private API in bug report templates
This commit is contained in:
commit
55a443b847
2 changed files with 4 additions and 8 deletions
|
@ -48,16 +48,14 @@ end
|
|||
|
||||
class BugTest < Minitest::Test
|
||||
def test_migration_up
|
||||
migrator = ActiveRecord::Migrator.new(:up, [ChangeAmountToAddScale])
|
||||
migrator.run
|
||||
ChangeAmountToAddScale.migrate(:up)
|
||||
Payment.reset_column_information
|
||||
|
||||
assert_equal "decimal(10,2)", Payment.columns.last.sql_type
|
||||
end
|
||||
|
||||
def test_migration_down
|
||||
migrator = ActiveRecord::Migrator.new(:down, [ChangeAmountToAddScale])
|
||||
migrator.run
|
||||
ChangeAmountToAddScale.migrate(:down)
|
||||
Payment.reset_column_information
|
||||
|
||||
assert_equal "decimal(10,0)", Payment.columns.last.sql_type
|
||||
|
|
|
@ -48,16 +48,14 @@ end
|
|||
|
||||
class BugTest < Minitest::Test
|
||||
def test_migration_up
|
||||
migrator = ActiveRecord::Migrator.new(:up, [ChangeAmountToAddScale])
|
||||
migrator.run
|
||||
ChangeAmountToAddScale.migrate(:up)
|
||||
Payment.reset_column_information
|
||||
|
||||
assert_equal "decimal(10,2)", Payment.columns.last.sql_type
|
||||
end
|
||||
|
||||
def test_migration_down
|
||||
migrator = ActiveRecord::Migrator.new(:down, [ChangeAmountToAddScale])
|
||||
migrator.run
|
||||
ChangeAmountToAddScale.migrate(:down)
|
||||
Payment.reset_column_information
|
||||
|
||||
assert_equal "decimal(10,0)", Payment.columns.last.sql_type
|
||||
|
|
Loading…
Reference in a new issue