aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-08-23 23:17:00 +0900
committeryui-knk <spiketeika@gmail.com>2015-08-23 23:17:00 +0900
commitb43c09836335141304f14c562052d6274ff9b792 (patch)
treef5cbb55374b30a5c6e05feaf1701eae436e9076b /activerecord
parent3cbaeb16013ef488a9619dd00dd00fe49bb6994d (diff)
downloadrails-b43c09836335141304f14c562052d6274ff9b792.tar.gz
rails-b43c09836335141304f14c562052d6274ff9b792.tar.bz2
rails-b43c09836335141304f14c562052d6274ff9b792.zip
Add `assert_nothing_raised` to make clear test case perpose
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index b2f209fe97..782a7906cc 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