Skip to content

Commit

Permalink
Update to ruby/spec@7241f39
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Dec 27, 2019
1 parent 74fdc1e commit c74d30e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
Expand Up @@ -2,7 +2,6 @@
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
Expand Down
9 changes: 6 additions & 3 deletions spec/ruby/core/exception/exit_value_spec.rb
Expand Up @@ -4,7 +4,10 @@
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
7 changes: 0 additions & 7 deletions spec/ruby/core/exception/incomplete_input_spec.rb

This file was deleted.

9 changes: 6 additions & 3 deletions spec/ruby/core/exception/reason_spec.rb
Expand Up @@ -4,7 +4,10 @@
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
3 changes: 1 addition & 2 deletions spec/ruby/core/process/wait_spec.rb
Expand Up @@ -7,9 +7,8 @@
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
Expand Down

0 comments on commit c74d30e

Please sign in to comment.