Remove unused _include_private argument

The implementation of respond_to? here is independent of the
implementation on Object which uses the include_private argument.

In this implementation the _include_private argument can and will never be used.

So remove it from the code.
This commit is contained in:
Geoff Hubbard 2020-05-31 22:13:12 +02:00 committed by Daniel Colson
parent a887d3d2eb
commit 4303e7d0d7
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module FactoryBot
end
end
def respond_to?(method, _include_private = false)
def respond_to?(method)
@methods_to_respond_to.include? method.to_s
end
end