add spec to relate RM-37

This commit is contained in:
Watson
2013-03-21 15:47:53 +09:00
parent 7f0d6587b5
commit 1755d2b69a

View File

@@ -49,3 +49,16 @@ describe "define_method" do
obj.test2.should == 42
end
end
class TestIncludedModule
include TestDefineMethodAlias
end
describe "define_method" do
# RM-37 Assertion failed when trying to define a method on a module
it "should work on class which included module" do
obj = TestIncludedModule.new
obj.test.should == 42
obj.test2.should == 42
end
end