Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
731dd78a
Commit
731dd78a
authored
Aug 11, 2017
by
Christopher Aue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic test for calling a missing method through super
parent
d077a5f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
test/t/kernel.rb
test/t/kernel.rb
+20
-0
No files found.
test/t/kernel.rb
View file @
731dd78a
...
...
@@ -359,6 +359,26 @@ assert('Kernel#method_missing', '15.3.1.3.30') do
mm_test
=
MMTestClass
.
new
assert_equal
'A call to no_method_named_this'
,
mm_test
.
no_method_named_this
class
SuperMMTestClass
<
MMTestClass
def
no_super_method_named_this
super
end
end
super_mm_test
=
SuperMMTestClass
.
new
assert_equal
'A call to no_super_method_named_this'
,
super_mm_test
.
no_super_method_named_this
class
NoSuperMethodTestClass
def
no_super_method_named_this
super
end
end
no_super_test
=
NoSuperMethodTestClass
.
new
begin
no_super_test
.
no_super_method_named_this
rescue
NoMethodError
=>
e
assert_equal
"undefined method 'no_super_method_named_this' for
#{
no_super_test
}
"
,
e
.
message
end
a
=
String
.
new
begin
a
.
no_method_named_this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment