Permalink
Browse files

failing test for an object with attribute= defined

Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information...
1 parent 3e81f7a commit 0de21a702770d9bf3928770613ce86eedb0492e5 @sandro sandro committed with qrush Mar 27, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/stub_strategy_test.rb
@@ -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')

0 comments on commit 0de21a7

Please sign in to comment.