summaryrefslogtreecommitdiff
path: root/spec/support/mock/constant.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/mock/constant.rb')
-rw-r--r--spec/support/mock/constant.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/mock/constant.rb b/spec/support/mock/constant.rb
index 3a23b4d8d8..7acd02e9d7 100644
--- a/spec/support/mock/constant.rb
+++ b/spec/support/mock/constant.rb
@@ -15,7 +15,7 @@ def mock_constants(constants)
begin
yield
ensure
- constants.each do |constant, val|
+ constants.each_key do |constant|
source_object, const_name = parse_constant(constant)
with_warnings(nil) { source_object.const_set(const_name, saved_constants[constant]) }
end