diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-09-15 21:54:31 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-09-15 21:56:00 +0200 |
commit | 1af0319fc88688bc5dd5e49eecdb8b534ead9991 (patch) | |
tree | 352b35490e64bc961dc005d679392106d6be90b9 /spec/ruby/core/method | |
parent | 9b535f3ff7c2f48e34dd44564df7adc723b81276 (diff) |
2.8 -> 3.0 in specs
Diffstat (limited to 'spec/ruby/core/method')
-rw-r--r-- | spec/ruby/core/method/compose_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/method/shared/to_s.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/method/compose_spec.rb b/spec/ruby/core/method/compose_spec.rb index 0e2a0eeea2..0743dd4f8d 100644 --- a/spec/ruby/core/method/compose_spec.rb +++ b/spec/ruby/core/method/compose_spec.rb @@ -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 diff --git a/spec/ruby/core/method/shared/to_s.rb b/spec/ruby/core/method/shared/to_s.rb index 7666322936..0c0edc2f8c 100644 --- a/spec/ruby/core/method/shared/to_s.rb +++ b/spec/ruby/core/method/shared/to_s.rb @@ -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 |