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 4737ad2 commit d0d2162Copy full SHA for d0d2162
lib/rspec/rails/mocks.rb
@@ -128,7 +128,8 @@ def self.primary_key; :id; end
128
model_class.respond_to?(:column_names) && model_class.column_names.include?(method_name.to_s)
129
end
130
131
- msingleton.__send__(:define_method, :respond_to?) do |method_name, include_private=false|
+ msingleton.__send__(:define_method, :respond_to?) do |method_name, *args|
132
+ include_private = args.first || false
133
__model_class_has_column?(method_name) ? true : super(method_name, include_private)
134
end unless stubs.has_key?(:respond_to?)
135
0 commit comments