fixed typo around dynamically adding attribute accessors, test passes

Signed-off-by: Nick Quaranto <nick@quaran.to>
This commit is contained in:
Sandro Turriate 2009-03-27 15:25:22 -04:00 committed by Nick Quaranto
parent 0de21a7027
commit 48b61d0545
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class Factory
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)