Skip to content

Commit

Permalink
fixed typo around dynamically adding attribute accessors, test passes
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information
sandro authored and qrush committed Apr 9, 2009
1 parent 0de21a7 commit 48b61d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factory_girl/proxy/stub.rb
Expand Up @@ -10,7 +10,7 @@ def get(attribute)
end

def set(attribute, value)
unless @mock.respond_to?("attribute=")
unless @mock.respond_to?("#{attribute}=")
class << @mock; self end.send(:attr_accessor, attribute)
end
@mock.send("#{attribute}=", value)
Expand Down

0 comments on commit 48b61d0

Please sign in to comment.