Skip to content
This repository
Browse code

failing test for an object with attribute= defined

Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information...
commit 0de21a702770d9bf3928770613ce86eedb0492e5 1 parent 3e81f7a
Sandro Turriate authored March 27, 2009 qrush committed April 09, 2009

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  test/stub_strategy_test.rb
9  test/stub_strategy_test.rb
@@ -35,6 +35,15 @@ class StubProxyTest < Test::Unit::TestCase
35 35
       assert_kind_of Object, @proxy.result
36 36
     end
37 37
 
  38
+    context "setting an attribute" do
  39
+      should "define attributes even if attribute= is defined" do
  40
+        @proxy.set('attribute', nil)
  41
+        assert_nothing_raised do
  42
+          @proxy.set('age', 18)
  43
+        end
  44
+      end
  45
+    end
  46
+
38 47
     context "after setting an attribute" do
39 48
       setup do
40 49
         @proxy.set(:attribute, 'value')

0 notes on commit 0de21a7

Please sign in to comment.
Something went wrong with that request. Please try again.