mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@15c9619
This commit is contained in:
parent
00c33d9c23
commit
a1b4816759
193 changed files with 3026 additions and 3387 deletions
|
@ -101,11 +101,9 @@ describe "Kernel#warn" do
|
|||
-> { w.f4("foo", 3) }.should output(nil, %r|core/kernel/fixtures/classes.rb:#{w.f3_call_lineno}: warning: foo|)
|
||||
end
|
||||
|
||||
ruby_bug "#14846", "2.5"..."2.6" do
|
||||
it "does not prepend caller information if line number is too big" do
|
||||
w = KernelSpecs::WarnInNestedCall.new
|
||||
-> { w.f4("foo", 100) }.should output(nil, "warning: foo\n")
|
||||
end
|
||||
it "does not prepend caller information if line number is too big" do
|
||||
w = KernelSpecs::WarnInNestedCall.new
|
||||
-> { w.f4("foo", 100) }.should output(nil, "warning: foo\n")
|
||||
end
|
||||
|
||||
it "prepends even if a message is empty or nil" do
|
||||
|
@ -127,10 +125,8 @@ describe "Kernel#warn" do
|
|||
-> { warn "", uplevel: -100 }.should raise_error(ArgumentError)
|
||||
end
|
||||
|
||||
ruby_bug "#14846", "2.5"..."2.6" do
|
||||
it "raises ArgumentError if passed -1" do
|
||||
-> { warn "", uplevel: -1 }.should raise_error(ArgumentError)
|
||||
end
|
||||
it "raises ArgumentError if passed -1" do
|
||||
-> { warn "", uplevel: -1 }.should raise_error(ArgumentError)
|
||||
end
|
||||
|
||||
it "raises TypeError if passed not Integer" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue