mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Cleanup
This commit is contained in:
parent
82746c2ae0
commit
a3e20d5ff7
2 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
module FactoryGirl
|
||||
class Attribute
|
||||
class Attribute #:nodoc:
|
||||
|
||||
class AttributeGroup < Attribute
|
||||
class AttributeGroup < Attribute #:nodoc:
|
||||
def initialize(name, factory)
|
||||
super(name)
|
||||
@factory = factory
|
||||
|
@ -17,5 +17,6 @@ module FactoryGirl
|
|||
(@factory || FactoryGirl).attribute_group_by_name(name)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,6 +7,7 @@ module FactoryGirl
|
|||
end
|
||||
|
||||
attr_reader :child_factories
|
||||
|
||||
def initialize(factory)
|
||||
@factory = factory
|
||||
@child_factories = []
|
||||
|
|
Loading…
Reference in a new issue