Skip to content

Commit 1977d04

Browse files
committed
Stop shadowing variable
1 parent 68014d0 commit 1977d04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rspec/active_model/mocks/mocks.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ def self.param_delimiter; "-"; end
175175
__model_class_has_column?(method_name) ? true : super(method_name, include_private)
176176
end unless stubs.key?(:respond_to?)
177177

178-
msingleton.__send__(:define_method, :method_missing) do |m, *a, &b|
179-
if respond_to?(m)
178+
msingleton.__send__(:define_method, :method_missing) do |missing_m, *a, &b|
179+
if respond_to?(missing_m)
180180
null_object? ? self : nil
181181
else
182-
super(m, *a, &b)
182+
super(missing_m, *a, &b)
183183
end
184184
end
185185

0 commit comments

Comments
 (0)