1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Fix warnings

This commit is contained in:
Andrew Grimm 2015-04-29 20:23:52 +10:00 committed by Joshua Clayton
parent 5a8804871c
commit 37d61983ef
2 changed files with 4 additions and 3 deletions

View file

@ -54,7 +54,7 @@ module FactoryGirl
def ignore(&block)
ActiveSupport::Deprecation.warn "`#ignore` is deprecated and will be "\
"removed in 5.0. Please use `#transient` instead."
transient &block
transient(&block)
end
def transient(&block)

View file

@ -15,9 +15,10 @@ module FactoryGirl
end
end
private
attr_reader :factories_to_lint, :invalid_factories
private :factories_to_lint, :invalid_factories
private
def calculate_invalid_factories
factories_to_lint.inject({}) do |result, factory|