From 0800bb5daebca0865e0b9d1987208906b275787f Mon Sep 17 00:00:00 2001 From: Watson Date: Mon, 28 Apr 2014 14:48:11 +0900 Subject: [PATCH] [test] add test for RM-455 --- test/test/spec/shortcut_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test/spec/shortcut_spec.rb diff --git a/test/test/spec/shortcut_spec.rb b/test/test/spec/shortcut_spec.rb new file mode 100644 index 00000000..cec657b7 --- /dev/null +++ b/test/test/spec/shortcut_spec.rb @@ -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 \ No newline at end of file