mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-21 19:43:03 +08:00
add spec to relate RM-37
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user