failing test for an object with attribute= defined

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

View File

@ -35,6 +35,15 @@ class StubProxyTest < Test::Unit::TestCase
assert_kind_of Object, @proxy.result
end
context "setting an attribute" do
should "define attributes even if attribute= is defined" do
@proxy.set('attribute', nil)
assert_nothing_raised do
@proxy.set('age', 18)
end
end
end
context "after setting an attribute" do
setup do
@proxy.set(:attribute, 'value')