We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68014d0 commit 1977d04Copy full SHA for 1977d04
lib/rspec/active_model/mocks/mocks.rb
@@ -175,11 +175,11 @@ def self.param_delimiter; "-"; end
175
__model_class_has_column?(method_name) ? true : super(method_name, include_private)
176
end unless stubs.key?(:respond_to?)
177
178
- msingleton.__send__(:define_method, :method_missing) do |m, *a, &b|
179
- if respond_to?(m)
+ msingleton.__send__(:define_method, :method_missing) do |missing_m, *a, &b|
+ if respond_to?(missing_m)
180
null_object? ? self : nil
181
else
182
- super(m, *a, &b)
+ super(missing_m, *a, &b)
183
end
184
185
0 commit comments