ruby-changes:59538
From: Benoit <ko1@a...>
Date: Sat, 28 Dec 2019 01:53:40 +0900 (JST)
Subject: [ruby-changes:59538] c74d30e795 (master): Update to ruby/spec@7241f39
https://git.ruby-lang.org/ruby.git/commit/?id=c74d30e795 From c74d30e7950f18fd9fadcfa404790e8fb0e891fd Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Fri, 27 Dec 2019 17:36:07 +0100 Subject: Update to ruby/spec@7241f39 diff --git a/spec/ruby/core/encoding/invalid_byte_sequence_error/incomplete_input_spec.rb b/spec/ruby/core/encoding/invalid_byte_sequence_error/incomplete_input_spec.rb index e3ef3e4..94201a9 100644 --- a/spec/ruby/core/encoding/invalid_byte_sequence_error/incomplete_input_spec.rb +++ b/spec/ruby/core/encoding/invalid_byte_sequence_error/incomplete_input_spec.rb @@ -2,7 +2,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/encoding/invalid_byte_sequence_error/incomplete_input_spec.rb#L2 require_relative '../../../spec_helper' describe "Encoding::InvalidByteSequenceError#incomplete_input?" do - it "returns nil by default" do Encoding::InvalidByteSequenceError.new.incomplete_input?.should be_nil end diff --git a/spec/ruby/core/exception/exit_value_spec.rb b/spec/ruby/core/exception/exit_value_spec.rb index 8bb3cf8..99987dd 100644 --- a/spec/ruby/core/exception/exit_value_spec.rb +++ b/spec/ruby/core/exception/exit_value_spec.rb @@ -4,7 +4,10 @@ describe "LocalJumpError#exit_value" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/exception/exit_value_spec.rb#L4 def get_me_a_return Proc.new { return 42 } end - -> { get_me_a_return.call }.should raise_error(LocalJumpError) { |e| - e.exit_value.should == 42 - } + + it "returns the value given to return" do + -> { get_me_a_return.call }.should raise_error(LocalJumpError) { |e| + e.exit_value.should == 42 + } + end end diff --git a/spec/ruby/core/exception/incomplete_input_spec.rb b/spec/ruby/core/exception/incomplete_input_spec.rb deleted file mode 100644 index 930a3f0..0000000 --- a/spec/ruby/core/exception/incomplete_input_spec.rb +++ /dev/null @@ -1,7 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/exception/exit_value_spec.rb#L0 -require_relative '../../spec_helper' - -describe "Encoding::InvalidByteSequenceError#incomplete_input?" do - -> {"abc\xa4def".encode("ISO-8859-1", "EUC-JP") }.should raise_error(Encoding::InvalidByteSequenceError) { |e| - e.incomplete_input?.should == false - } -end diff --git a/spec/ruby/core/exception/reason_spec.rb b/spec/ruby/core/exception/reason_spec.rb index b28cbde..210bbc9 100644 --- a/spec/ruby/core/exception/reason_spec.rb +++ b/spec/ruby/core/exception/reason_spec.rb @@ -4,7 +4,10 @@ describe "LocalJumpError#reason" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/exception/reason_spec.rb#L4 def get_me_a_return Proc.new { return 42 } end - -> { get_me_a_return.call }.should raise_error(LocalJumpError) { |e| - e.reason.should == :return - } + + it "returns 'return' for a return" do + -> { get_me_a_return.call }.should raise_error(LocalJumpError) { |e| + e.reason.should == :return + } + end end diff --git a/spec/ruby/core/process/wait_spec.rb b/spec/ruby/core/process/wait_spec.rb index f393a99..44c95d6 100644 --- a/spec/ruby/core/process/wait_spec.rb +++ b/spec/ruby/core/process/wait_spec.rb @@ -7,9 +7,8 @@ describe "Process.wait" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/wait_spec.rb#L7 before :all do begin leaked = Process.waitall - puts "leaked before wait specs: #{leaked}" unless leaked.empty? # Ruby-space should not see PIDs used by mjit - leaked.should be_empty + raise "subprocesses leaked before wait specs: #{leaked}" unless leaked.empty? rescue NotImplementedError end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/