diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-24 13:19:39 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-24 13:19:39 -0300 |
commit | c5abac2b317351f5edb9bfcb542e27e8f2cbc916 (patch) | |
tree | 4afa031a923b83866d83df8611b2c4dcc9bff6aa /activerecord/test | |
parent | 1c1ad2b74600579e255bcb34e9926de2a76ac61a (diff) | |
parent | b43c09836335141304f14c562052d6274ff9b792 (diff) | |
download | rails-c5abac2b317351f5edb9bfcb542e27e8f2cbc916.tar.gz rails-c5abac2b317351f5edb9bfcb542e27e8f2cbc916.tar.bz2 rails-c5abac2b317351f5edb9bfcb542e27e8f2cbc916.zip |
Merge pull request #21342 from yui-knk/test/add_assert_method
Add `assert_nothing_raised` to make clear test case perpose
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 11e42f28dc..128a242495 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -115,7 +115,7 @@ class MigrationTest < ActiveRecord::TestCase end def test_migration_version - ActiveRecord::Migrator.run(:up, MIGRATIONS_ROOT + "/version_check", 20131219224947) + assert_nothing_raised { ActiveRecord::Migrator.run(:up, MIGRATIONS_ROOT + "/version_check", 20131219224947) } end def test_create_table_with_force_true_does_not_drop_nonexisting_table |