[test] add spec for RM-512

This commit is contained in:
Watson
2014-06-09 12:15:15 +09:00
parent 2217d16eb8
commit 496420a84e

View File

@@ -4,6 +4,9 @@ class TestShortcut
def setFoo(x)
@foo = x
end
def setFoo1(x)
@foo = x
end
end
describe "Shortcut method on RubyObject" do
@@ -14,4 +17,12 @@ describe "Shortcut method on RubyObject" do
obj.foo = 42
obj.foo.should == 42
end
it "should work even if method name has trailing number" do
# RM-512
obj = TestShortcut.new
obj.respond_to?(:foo1=).should == true
obj.foo1 = 42
obj.foo.should == 42
end
end