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

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