This commit is contained in:
Benoit Daloze 2020-09-15 21:54:31 +02:00
Родитель 9b535f3ff7
Коммит 1af0319fc8
147 изменённых файлов: 199 добавлений и 201 удалений

Просмотреть файл

@ -23,7 +23,7 @@ describe "Binding#eval" do
bind2.local_variables.should == []
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "inherits __LINE__ from the enclosing scope" do
obj = BindingSpecs::Demo.new(1)
bind = obj.get_binding
@ -50,7 +50,7 @@ describe "Binding#eval" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "starts with line 1 if single argument is given" do
obj = BindingSpecs::Demo.new(1)
bind = obj.get_binding
@ -89,7 +89,7 @@ describe "Binding#eval" do
bind.eval("#foo\n__LINE__", "(test)", 88).should == 89
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "inherits __FILE__ from the enclosing scope" do
obj = BindingSpecs::Demo.new(1)
bind = obj.get_binding
@ -97,7 +97,7 @@ describe "Binding#eval" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "Uses (eval) as __FILE__ if single argument given" do
obj = BindingSpecs::Demo.new(1)
bind = obj.get_binding

2
spec/ruby/core/env/delete_spec.rb поставляемый
Просмотреть файл

@ -30,7 +30,7 @@ describe "ENV.delete" do
ScratchPad.recorded.should == "foo"
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "returns the result of given block if the named environment variable does not exist" do
ENV.delete("foo")
ENV.delete("foo") { |name| "bar" }.should == "bar"

Просмотреть файл

@ -104,7 +104,7 @@ describe "NoMethodError#message" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "uses #name to display the receiver if it is a class or a module" do
klass = Class.new { def self.name; "MyClass"; end }
begin

Просмотреть файл

@ -21,7 +21,7 @@ describe :hash_each, shared: true do
ary.sort.should == ["a", "b", "c"]
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "yields 2 values and not an Array of 2 elements when given a callable of arity 2" do
obj = Object.new
def obj.foo(key, value)
@ -38,7 +38,7 @@ describe :hash_each, shared: true do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "yields an Array of 2 elements when given a callable of arity 2" do
obj = Object.new
def obj.foo(key, value)

Просмотреть файл

@ -19,13 +19,13 @@ describe "Hash#to_proc" do
@proc = @hash.to_proc
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "is not a lambda" do
@proc.should_not.lambda?
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "is a lambda" do
@proc.should.lambda?
end

Просмотреть файл

@ -197,7 +197,7 @@ describe :io_new, shared: true do
@io.internal_encoding.to_s.should == 'IBM866'
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
it "accepts nil options" do
@io = suppress_keyword_warning do
IO.send(@method, @fd, 'w', nil)
@ -206,7 +206,7 @@ describe :io_new, shared: true do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it "raises ArgumentError for nil options" do
-> {
IO.send(@method, @fd, 'w', nil)
@ -382,7 +382,7 @@ describe :io_new_errors, shared: true do
}.should raise_error(ArgumentError)
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
it "raises TypeError if passed a hash for mode and nil for options" do
-> {
suppress_keyword_warning do
@ -392,7 +392,7 @@ describe :io_new_errors, shared: true do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it "raises ArgumentError if passed a hash for mode and nil for options" do
-> {
@io = IO.send(@method, @fd, {mode: 'w'}, nil)

Просмотреть файл

@ -103,7 +103,7 @@ describe "IO#ungetc" do
-> { @io.sysread(1) }.should raise_error(IOError)
end
ruby_version_is "0"..."2.8" do
ruby_version_is "0"..."3.0" do
it "does not affect the stream and returns nil when passed nil" do
@io.getc.should == ?V
@io.ungetc(nil)
@ -111,7 +111,7 @@ describe "IO#ungetc" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "raises TypeError if passed nil" do
@io.getc.should == ?V
proc{@io.ungetc(nil)}.should raise_error(TypeError)

Просмотреть файл

@ -19,7 +19,7 @@ describe "Kernel#__dir__" do
end
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
context "when used in eval with top level binding" do
it "returns the real name of the directory containing the currently-executing file" do
eval("__dir__", binding).should == File.realpath(File.dirname(__FILE__))
@ -27,7 +27,7 @@ describe "Kernel#__dir__" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
context "when used in eval with top level binding" do
it "returns nil" do
eval("__dir__", binding).should == nil

Просмотреть файл

@ -37,7 +37,7 @@ describe "Kernel#clone" do
o3.should.frozen?
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it 'takes an freeze: true option to frozen copy' do
@obj.clone(freeze: true).should.frozen?
@obj.freeze

Просмотреть файл

@ -159,7 +159,7 @@ describe "Kernel#eval" do
end
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "uses the filename of the binding if none is provided" do
eval("__FILE__").should == "(eval)"
suppress_warning {eval("__FILE__", binding)}.should == __FILE__
@ -170,7 +170,7 @@ describe "Kernel#eval" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "uses (eval) filename if none is provided" do
eval("__FILE__").should == "(eval)"
eval("__FILE__", binding).should == "(eval)"

Просмотреть файл

@ -1,7 +1,7 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
describe "Kernel#iterator?" do
it "is a private method" do
Kernel.should have_private_instance_method(:iterator?)

Просмотреть файл

@ -48,7 +48,7 @@ describe "Kernel#proc" do
end
end
ruby_version_is "2.7"..."2.8" do
ruby_version_is "2.7"..."3.0" do
it "can be created when called with no block" do
-> {
some_method { "hello" }
@ -56,7 +56,7 @@ describe "Kernel#proc" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "raises an ArgumentError when passed no block" do
-> {
some_method { "hello" }

Просмотреть файл

@ -243,7 +243,7 @@ describe :kernel_require, shared: true do
ScratchPad.recorded.should == [:loaded]
end
ruby_bug "#16926", "2.7"..."2.8" do
ruby_bug "#16926", "2.7"..."3.0" do
it "does not load a feature twice when $LOAD_PATH has been modified" do
$LOAD_PATH.replace [CODE_LOADING_DIR]
@object.require("load_fixture").should be_true

Просмотреть файл

@ -39,8 +39,8 @@ ruby_version_is "2.6" do
double = proc { |x| x + x }
(pow_2 << double).is_a?(Proc).should == true
ruby_version_is(''...'2.8') { (pow_2 << double).should.lambda? }
ruby_version_is('2.8') { (pow_2 << double).should_not.lambda? }
ruby_version_is(''...'3.0') { (pow_2 << double).should.lambda? }
ruby_version_is('3.0') { (pow_2 << double).should_not.lambda? }
end
it "may accept multiple arguments" do

Просмотреть файл

@ -32,7 +32,7 @@ describe :method_to_s, shared: true do
@string.should =~ /MethodSpecs::MySub/
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it "returns a String containing the Module containing the method if object has a singleton class but method is not defined in the singleton class" do
obj = MethodSpecs::MySub.new
obj.singleton_class

Просмотреть файл

@ -128,7 +128,7 @@ describe "Module#prepend" do
c.dup.new.should be_kind_of(m)
end
ruby_version_is '0'...'2.8' do
ruby_version_is '0'...'3.0' do
it "keeps the module in the chain when dupping an intermediate module" do
m1 = Module.new { def calc(x) x end }
m2 = Module.new { prepend(m1) }
@ -143,7 +143,7 @@ describe "Module#prepend" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it "uses only new module when dupping the module" do
m1 = Module.new { def calc(x) x end }
m2 = Module.new { prepend(m1) }

Просмотреть файл

@ -980,7 +980,7 @@ describe "Module#refine" do
result.should == [:B, :A, :LAST, :C]
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "looks in the lexical scope refinements before other active refinements" do
refined_class = ModuleSpecs.build_refined_class(for_super: true)
@ -1016,7 +1016,7 @@ describe "Module#refine" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
# https://bugs.ruby-lang.org/issues/17007
it "does not look in the lexical scope refinements before other active refinements" do
refined_class = ModuleSpecs.build_refined_class(for_super: true)

Просмотреть файл

@ -41,7 +41,7 @@ describe "Mutex#owned?" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "is held per Fiber" do
m = Mutex.new
m.lock

Просмотреть файл

@ -38,7 +38,7 @@ ruby_version_is "2.6" do
(f << g).should_not.lambda?
end
ruby_version_is(''...'2.8') do
ruby_version_is(''...'3.0') do
it "is a Proc when other is lambda" do
f = proc { |x| x * x }
g = -> x { x + x }
@ -56,7 +56,7 @@ ruby_version_is "2.6" do
end
end
ruby_version_is('2.8') do
ruby_version_is('3.0') do
it "is a lambda when parameter is lambda" do
f = -> x { x * x }
g = proc { |x| x + x }

Просмотреть файл

@ -2,11 +2,11 @@ require_relative '../../spec_helper'
require_relative 'shared/equal'
describe "Proc#eql?" do
ruby_version_is "0"..."2.8" do
ruby_version_is "0"..."3.0" do
it_behaves_like :proc_equal_undefined, :eql?
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it_behaves_like :proc_equal, :eql?
end
end

Просмотреть файл

@ -2,11 +2,11 @@ require_relative '../../spec_helper'
require_relative 'shared/equal'
describe "Proc#==" do
ruby_version_is "0"..."2.8" do
ruby_version_is "0"..."3.0" do
it_behaves_like :proc_equal_undefined, :==
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it_behaves_like :proc_equal, :==
end
end

Просмотреть файл

@ -203,7 +203,7 @@ describe "Proc.new without a block" do
end
end
ruby_version_is "2.7"..."2.8" do
ruby_version_is "2.7"..."3.0" do
it "can be created if invoked from within a method with a block" do
-> { ProcSpecs.new_proc_in_method { "hello" } }.should complain(/Capturing the given block using Proc.new is deprecated/)
end
@ -224,7 +224,7 @@ describe "Proc.new without a block" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "raises an ArgumentError when passed no block" do
def some_method
Proc.new

Просмотреть файл

@ -5,13 +5,13 @@ describe "Regexp#initialize" do
Regexp.should have_private_method(:initialize)
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "raises a SecurityError on a Regexp literal" do
-> { //.send(:initialize, "") }.should raise_error(SecurityError)
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "raises a FrozenError on a Regexp literal" do
-> { //.send(:initialize, "") }.should raise_error(FrozenError)
end

Просмотреть файл

@ -12,7 +12,7 @@ describe "Symbol#to_proc" do
:to_s.to_proc.call(obj).should == "Received #to_s"
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "returns a Proc with #lambda? false" do
pr = :to_s.to_proc
pr.should_not.lambda?
@ -29,7 +29,7 @@ describe "Symbol#to_proc" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "returns a Proc with #lambda? true" do
pr = :to_s.to_proc
pr.should.lambda?

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
describe "Thread.exclusive" do
before :each do
ScratchPad.clear

Просмотреть файл

@ -129,7 +129,7 @@ ruby_version_is "2.6" do
time.zone.should == zone
time.utc_offset.should == 5*3600+30*60
ruby_version_is "2.8" do
ruby_version_is "3.0" do
time.wday.should == 6
time.yday.should == 1
end

Просмотреть файл

@ -124,13 +124,11 @@ describe 'TracePoint#enable' do
describe "when nested" do
before do
ruby_version_is ""..."2.8" do
# Old behavior for Ruby < 2.8
ruby_version_is ""..."3.0" do
@path_prefix = '@'
end
ruby_version_is "2.8" do
# New behavior for Ruby >= 2.8
ruby_version_is "3.0" do
@path_prefix = ' '
end
end

Просмотреть файл

@ -3,12 +3,12 @@ require_relative 'fixtures/classes'
describe 'TracePoint#inspect' do
before do
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
# Old behavior for Ruby < 2.8
@path_prefix = '@'
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
# New behavior for Ruby >= 2.8
@path_prefix = ' '
end

Просмотреть файл

@ -44,7 +44,7 @@ describe "A block yielded a single" do
m([1, 2]) { |a, **k| [a, k] }.should == [1, {}]
end
ruby_version_is ''..."2.8" do
ruby_version_is ''..."3.0" do
it "assigns elements to mixed argument types" do
suppress_keyword_warning do
result = m([1, 2, 3, {x: 9}]) { |a, b=5, *c, d, e: 2, **k| [a, b, c, d, e, k] }
@ -70,7 +70,7 @@ describe "A block yielded a single" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "assigns elements to mixed argument types" do
result = m([1, 2, 3, {x: 9}]) { |a, b=5, *c, d, e: 2, **k| [a, b, c, d, e, k] }
result.should == [1, 2, [3], {x: 9}, 2, {}]
@ -102,7 +102,7 @@ describe "A block yielded a single" do
end
end
ruby_version_is "2.7"...'2.8' do
ruby_version_is "2.7"...'3.0' do
it "calls #to_hash on the argument but ignores result when optional argument and keyword argument accepted" do
obj = mock("coerce block keyword arguments")
obj.should_receive(:to_hash).and_return({"a" => 1, "b" => 2})
@ -112,7 +112,7 @@ describe "A block yielded a single" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "does not call #to_hash on the argument when optional argument and keyword argument accepted and does not autosplat" do
obj = mock("coerce block keyword arguments")
obj.should_not_receive(:to_hash)
@ -123,7 +123,7 @@ describe "A block yielded a single" do
end
describe "when non-symbol keys are in a keyword arguments Hash" do
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "separates non-symbol keys and symbol keys" do
suppress_keyword_warning do
result = m(["a" => 10, b: 2]) { |a=nil, **b| [a, b] }
@ -131,7 +131,7 @@ describe "A block yielded a single" do
end
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "does not separate non-symbol keys and symbol keys and does not autosplat" do
suppress_keyword_warning do
result = m(["a" => 10, b: 2]) { |a=nil, **b| [a, b] }
@ -141,21 +141,21 @@ describe "A block yielded a single" do
end
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "does not treat hashes with string keys as keyword arguments" do
result = m(["a" => 10]) { |a = nil, **b| [a, b] }
result.should == [{"a" => 10}, {}]
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "does not treat hashes with string keys as keyword arguments and does not autosplat" do
result = m(["a" => 10]) { |a = nil, **b| [a, b] }
result.should == [[{"a" => 10}], {}]
end
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
it "calls #to_hash on the last element if keyword arguments are present" do
suppress_keyword_warning do
obj = mock("destructure block keyword arguments")
@ -202,7 +202,7 @@ describe "A block yielded a single" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it "does not call #to_hash on the last element if keyword arguments are present" do
obj = mock("destructure block keyword arguments")
obj.should_not_receive(:to_hash)

Просмотреть файл

@ -285,7 +285,7 @@ describe "A class definition extending an object (sclass)" do
}.should raise_error(TypeError)
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "allows accessing the block of the original scope" do
suppress_warning do
ClassSpecs.sclass_with_block { 123 }.should == 123
@ -293,7 +293,7 @@ describe "A class definition extending an object (sclass)" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "does not allow accessing the block of the original scope" do
-> {
ClassSpecs.sclass_with_block { 123 }

Просмотреть файл

@ -154,7 +154,7 @@ describe "Literal (A::X) constant resolution" do
-> { ConstantSpecs::ParentA::CS_CONSTX }.should raise_error(NameError)
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "uses the module or class #name to craft the error message" do
mod = Module.new do
def self.name

Просмотреть файл

@ -179,7 +179,7 @@ describe "A lambda literal -> () { }" do
result.should == [1, 2, 3, [4, 5], 6, [7, 8], 9, 10, 11, 12]
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
evaluate <<-ruby do
@a = -> (*, **k) { k }
ruby
@ -195,7 +195,7 @@ describe "A lambda literal -> () { }" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
evaluate <<-ruby do
@a = -> (*, **k) { k }
ruby
@ -546,7 +546,7 @@ describe "A lambda expression 'lambda { ... }'" do
result.should == [1, 2, 3, [4, 5], 6, [7, 8], 9, 10, 11, 12]
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
evaluate <<-ruby do
@a = lambda { |*, **k| k }
ruby
@ -562,7 +562,7 @@ describe "A lambda expression 'lambda { ... }'" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
evaluate <<-ruby do
@a = lambda { |*, **k| k }
ruby

Просмотреть файл

@ -733,7 +733,7 @@ describe "A method" do
end
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
evaluate <<-ruby do
def m(a, b: 1) [a, b] end
ruby
@ -768,7 +768,7 @@ describe "A method" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
evaluate <<-ruby do
def m(a, b: 1) [a, b] end
ruby
@ -905,7 +905,7 @@ describe "A method" do
result.should == [[1, 2, 3], 4, [5, 6], 7, [], 8]
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
evaluate <<-ruby do
def m(a=1, b:) [a, b] end
ruby
@ -930,7 +930,7 @@ describe "A method" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
evaluate <<-ruby do
def m(a=1, b:) [a, b] end
ruby
@ -1167,7 +1167,7 @@ describe "A method" do
end
end
ruby_version_is "2.7"...'2.8' do
ruby_version_is "2.7"...'3.0' do
evaluate <<-ruby do
def m(*, a:) a end
ruby
@ -1626,7 +1626,7 @@ describe "A method" do
result.should == [1, 1, [], 2, 3, 2, 4, { h: 5, i: 6 }, l]
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
evaluate <<-ruby do
def m(a, b = nil, c = nil, d, e: nil, **f)
[a, b, c, d, e, f]
@ -1646,7 +1646,7 @@ describe "A method" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
evaluate <<-ruby do
def m(a, b = nil, c = nil, d, e: nil, **f)
[a, b, c, d, e, f]
@ -1665,7 +1665,7 @@ describe "A method" do
end
end
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
context "assigns keyword arguments from a passed Hash without modifying it" do
evaluate <<-ruby do
def m(a: nil); a; end
@ -1682,7 +1682,7 @@ describe "A method" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
context "raises ArgumentError if passing hash as keyword arguments" do
evaluate <<-ruby do
def m(a: nil); a; end
@ -1787,7 +1787,7 @@ describe "An array-dereference method ([])" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
describe "An endless method definition" do
evaluate <<-ruby do
def m(a) = a

Просмотреть файл

@ -32,7 +32,7 @@ ruby_version_is "2.7" do
}.should raise_error(SyntaxError, /numbered parameter is already used in.+ outer block here/m)
end
ruby_version_is '2.7'...'2.8' do
ruby_version_is '2.7'...'3.0' do
it "can be overwritten with local variable" do
suppress_warning do
eval <<~CODE
@ -49,7 +49,7 @@ ruby_version_is "2.7" do
end
end
ruby_version_is '2.8' do
ruby_version_is '3.0' do
it "cannot be overwritten with local variable" do
-> {
eval <<~CODE

Просмотреть файл

@ -18,7 +18,7 @@ describe "Literal Regexps" do
/Hello/.should be_kind_of(Regexp)
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "is frozen" do
/Hello/.should.frozen?
end

Просмотреть файл

@ -421,7 +421,7 @@ describe "Invoking a method" do
specs.rest_len(0,*a,4,*5,6,7,*c,-1).should == 11
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "expands the Array elements from the splat after executing the arguments and block if no other arguments follow the splat" do
def self.m(*args, &block)
[args, block]
@ -437,7 +437,7 @@ describe "Invoking a method" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "expands the Array elements from the splat before applying block argument operations" do
def self.m(*args, &block)
[args, block]

Просмотреть файл

@ -83,7 +83,7 @@ describe "BigDecimal#to_s" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "returns a String in US-ASCII encoding when Encoding.default_internal is nil" do
Encoding.default_internal = nil
BigDecimal('1.23').to_s.encoding.should equal(Encoding::US_ASCII)

Просмотреть файл

@ -79,7 +79,7 @@ describe "Net::HTTP.get" do
end
end
ruby_version_is "2.8" do # https://bugs.ruby-lang.org/issues/13882#note-6
ruby_version_is "3.0" do # https://bugs.ruby-lang.org/issues/13882#note-6
it "lets the kill Thread exception goes through and does not replace it with Zlib::BufError" do
socket, client_thread = start_threads
begin

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#clone" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#element" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#==" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#hash" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#initialize" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#inspect" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#namespace" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#node_type" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#prefix" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#remove" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#to_s" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#to_string" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#value" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#write" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attribute#xpath" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require_relative 'shared/add'
require 'rexml/document'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require_relative 'shared/add'
require 'rexml/document'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#delete_all" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#delete" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#each_attribute" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#each" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#[]" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#[]=" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#get_attribute_ns" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#get_attribute" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#initialize" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require_relative 'shared/length'
require 'rexml/document'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#namespaces" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#prefixes" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require_relative 'shared/length'
require 'rexml/document'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Attributes#to_a" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::CData#clone" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::CData#initialize" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require_relative 'shared/to_s'
require 'rexml/document'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require_relative 'shared/to_s'
require 'rexml/document'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#add_element" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
# This spec defines Document#add and Document#<<

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
# According to the MRI documentation (http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html),

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#doctype" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#encoding" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe :document_expanded_name, shared: true do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#new" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#node_type" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#root" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#stand_alone?" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#version" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
require 'rexml/formatters/transitive'

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Document#xml_decl" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#add_attribute" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#add_attributes" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#add_element" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#add_namespace" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#add_text" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#attribute" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#attributes" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#cdatas" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#clone" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#comments" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#delete_attribute" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#delete_element" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#delete_namespace" do

Просмотреть файл

@ -1,6 +1,6 @@
require_relative '../../../spec_helper'
ruby_version_is ''...'2.8' do
ruby_version_is ''...'3.0' do
require 'rexml/document'
describe "REXML::Element#document" do

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше