[test] add test for RM-455

This commit is contained in:
Watson
2014-04-28 14:48:11 +09:00
parent c2da1b0c89
commit 0800bb5dae

View File

@@ -0,0 +1,17 @@
class TestShortcut
attr_reader :foo
def setFoo(x)
@foo = x
end
end
describe "Shortcut method on RubyObject" do
it "should work" do
# RM-455
obj = TestShortcut.new
obj.respond_to?(:foo=).should == true
obj.foo = 42
obj.foo.should == 42
end
end