We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78be262 commit f96be45Copy full SHA for f96be45
spec/ruby/core/module/prepend_spec.rb
@@ -47,9 +47,8 @@ def foo
47
'a'
48
end
49
50
- b_class = Class.new(a_class)
51
- b = b_class.new
52
- foo = -> { b.foo }
+ a = a_class.new
+ foo = -> { a.foo }
53
foo.call.should == 'a'
54
a_class.class_eval do
55
prepend m_module
@@ -65,9 +64,8 @@ def foo
65
64
66
67
68
69
70
71
72
m_module.module_eval do
73
def foo
@@ -94,9 +92,8 @@ def foo
94
92
include n_module
95
93
96
97
98
99
100
101
102
0 commit comments