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:
parent
5a8804871c
commit
37d61983ef
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Add table
Reference in a new issue