Permalink
Browse files

don't need to pass the 2nd arg to respond_to on public method

  • Loading branch information...
1 parent 78b373e commit 5befcc21c10d016e116434dcc134fb3386606997 @dchelimsky dchelimsky committed Dec 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/rails/mocks.rb
View
@@ -101,7 +101,7 @@ def @object.instance_of?(other)
other == #{model_class}
end
def @object.respond_to?(method_name, include_private=false)
- #{model_class}.respond_to?(:column_names, include_private) && #{model_class}.column_names.include?(method_name.to_s) || super
+ #{model_class}.respond_to?(:column_names) && #{model_class}.column_names.include?(method_name.to_s) || super
end
def @object.class
#{model_class}

0 comments on commit 5befcc2

Please sign in to comment.