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