aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-27 10:21:15 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-27 10:21:28 -0700
commit15a4d3c383e6120bb0670fe2f9f07f72a5825027 (patch)
tree10ad838edca3ebb8a102592b7d00c93940857ad7 /activerecord/test
parent2064c61f4b1f52dfe20bbe544db34c9fff1930b3 (diff)
downloadrails-15a4d3c383e6120bb0670fe2f9f07f72a5825027.tar.gz
rails-15a4d3c383e6120bb0670fe2f9f07f72a5825027.tar.bz2
rails-15a4d3c383e6120bb0670fe2f9f07f72a5825027.zip
Also raise error when VERSION is nil
Fix #28905
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/tasks/database_tasks_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/tasks/database_tasks_test.rb b/activerecord/test/cases/tasks/database_tasks_test.rb
index b4983624ba..c47c97e9d9 100644
--- a/activerecord/test/cases/tasks/database_tasks_test.rb
+++ b/activerecord/test/cases/tasks/database_tasks_test.rb
@@ -368,7 +368,8 @@ module ActiveRecord
def test_migrate_raise_error_on_empty_version
version = ENV["VERSION"]
ENV["VERSION"] = ""
- assert_raise(RuntimeError, "Empty VERSION provided") { ActiveRecord::Tasks::DatabaseTasks.migrate }
+ e = assert_raise(RuntimeError) { ActiveRecord::Tasks::DatabaseTasks.migrate }
+ assert_equal "Empty VERSION provided", e.message
ensure
ENV["VERSION"] = version
end