failing test for an object with attribute= defined
Signed-off-by: Nick Quaranto <nick@quaran.to>
This commit is contained in:
parent
3e81f7a460
commit
0de21a7027
|
@ -35,6 +35,15 @@ class StubProxyTest < Test::Unit::TestCase
|
||||||
assert_kind_of Object, @proxy.result
|
assert_kind_of Object, @proxy.result
|
||||||
end
|
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
|
context "after setting an attribute" do
|
||||||
setup do
|
setup do
|
||||||
@proxy.set(:attribute, 'value')
|
@proxy.set(:attribute, 'value')
|
||||||
|
|
Loading…
Reference in New Issue