Permalink
Browse files

Merge pull request #29524 from y-yagi/do_not_use_private_api_in_bug_r…

…eport_templates

Do not use private API in bug report templates
  • Loading branch information...
eileencodes committed Jun 22, 2017
2 parents 5de611a + 2dafc4b commit 55a443b847ccf37aa8fb62fbc827f5b540980dd9
@@ -48,16 +48,14 @@ def change
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 @@ def change
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

0 comments on commit 55a443b

Please sign in to comment.