aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-12-28 08:03:29 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-12-28 08:03:29 +0900
commit9ed7c7e9e2d61d60bc40aed421444cddc40d51f8 (patch)
tree66942992eb37a45d95c09c9b32cc4670cb91a5e0 /activerecord/test/cases/migration_test.rb
parent6d959017bd05c775d35045401292828c92b7dcc7 (diff)
downloadrails-9ed7c7e9e2d61d60bc40aed421444cddc40d51f8.tar.gz
rails-9ed7c7e9e2d61d60bc40aed421444cddc40d51f8.tar.bz2
rails-9ed7c7e9e2d61d60bc40aed421444cddc40d51f8.zip
Remove redundant assignning to `current_env`
This was introduced at https://github.com/rails/rails/commit/cfa1df4b07bee5b2bbcbf9edd2ac287b4fb23c18#diff-b36b9c41be30b05dc14d09d7f3b192efR436.
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r--activerecord/test/cases/migration_test.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 8b0ecd2516..c6f4d4bf22 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -442,7 +442,6 @@ class MigrationTest < ActiveRecord::TestCase
current_env = ActiveRecord::ConnectionHandling::DEFAULT_ENV.call
migrations_path = MIGRATIONS_ROOT + "/valid"
- current_env = ActiveRecord::ConnectionHandling::DEFAULT_ENV.call
migrator = ActiveRecord::MigrationContext.new(migrations_path)
migrator.up
assert_equal current_env, ActiveRecord::InternalMetadata[:environment]