mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Add respond_to_missing? on NullObject for 1.9 compatability
This commit is contained in:
parent
8d2b352c48
commit
e038bf8eec
1 changed files with 4 additions and 0 deletions
|
@ -16,5 +16,9 @@ module FactoryGirl
|
|||
def respond_to?(method, include_private=false)
|
||||
@methods_to_respond_to.include? method.to_s
|
||||
end
|
||||
|
||||
def respond_to_missing?(*args)
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue