From 4303e7d0d7db0dacfda57078470e32ec49a529f5 Mon Sep 17 00:00:00 2001 From: Geoff Hubbard Date: Sun, 31 May 2020 22:13:12 +0200 Subject: [PATCH] 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. --- lib/factory_bot/null_object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/factory_bot/null_object.rb b/lib/factory_bot/null_object.rb index 51839ff..dcfcfa1 100644 --- a/lib/factory_bot/null_object.rb +++ b/lib/factory_bot/null_object.rb @@ -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