зеркало из https://github.com/github/ruby.git
Fix build failures
This commit is contained in:
Родитель
e5f5446528
Коммит
7cfd6a0bb9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче