Skip to content

Commit

Permalink
failing test for an object with attribute= defined
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 3e81f7a commit 0de21a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/stub_strategy_test.rb
Expand Up @@ -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')
Expand Down

0 comments on commit 0de21a7

Please sign in to comment.