mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix build failures
This commit is contained in:
parent
e5f5446528
commit
7cfd6a0bb9
Notes:
git
2020-06-07 02:02:42 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -110,14 +110,14 @@ describe "NoMethodError#message" do
|
|||
begin
|
||||
klass.foo
|
||||
rescue NoMethodError => error
|
||||
error.message.lines.first.should == "undefined method `foo' for MyClass:Class\n"
|
||||
error.message.lines.first.should == "undefined method `foo' for MyClass:Class"
|
||||
end
|
||||
|
||||
mod = Module.new { def self.name; "MyModule"; end }
|
||||
begin
|
||||
mod.foo
|
||||
rescue NoMethodError => error
|
||||
error.message.lines.first.should == "undefined method `foo' for MyModule:Module\n"
|
||||
error.message.lines.first.should == "undefined method `foo' for MyModule:Module"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue