aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-03-11 08:34:51 +0100
committerYves Senn <yves.senn@gmail.com>2014-03-11 08:34:51 +0100
commit6868265fe36e280e0b1ce96f3d378d0e0e14dc90 (patch)
treebe117ba2bb4ca36650afda278b155f529445c4b6 /activemodel
parent3f5339f48e3ce3eb40eb51fb1b686914a719a26a (diff)
downloadrails-6868265fe36e280e0b1ce96f3d378d0e0e14dc90.tar.gz
rails-6868265fe36e280e0b1ce96f3d378d0e0e14dc90.tar.bz2
rails-6868265fe36e280e0b1ce96f3d378d0e0e14dc90.zip
comment why we are modifying global state. [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/secure_password_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/test/cases/secure_password_test.rb b/activemodel/test/cases/secure_password_test.rb
index d603dee73e..bcd1e04a0f 100644
--- a/activemodel/test/cases/secure_password_test.rb
+++ b/activemodel/test/cases/secure_password_test.rb
@@ -4,6 +4,7 @@ require 'models/visitor'
class SecurePasswordTest < ActiveModel::TestCase
setup do
+ # Used only to speed up tests
@original_min_cost = ActiveModel::SecurePassword.min_cost
ActiveModel::SecurePassword.min_cost = true