mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
17 lines
260 B
Ruby
17 lines
260 B
Ruby
module FactoryGirl
|
|
class Attribute #:nodoc:
|
|
|
|
class Static < Attribute #:nodoc:
|
|
|
|
def initialize(name, value)
|
|
super(name)
|
|
@value = value
|
|
end
|
|
|
|
def add_to(proxy)
|
|
proxy.set(name, @value)
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|