Permalink
Browse files

fixed typo around dynamically adding attribute accessors, test passes

Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information...
1 parent 0de21a7 commit 48b61d054550bef7b47e097e198049b6df906c86 @sandro sandro committed with qrush Mar 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/factory_girl/proxy/stub.rb
@@ -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)

0 comments on commit 48b61d0

Please sign in to comment.