1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

2.8 -> 3.0 in specs

This commit is contained in:
Benoit Daloze 2020-09-15 21:54:31 +02:00
parent 9b535f3ff7
commit 1af0319fc8
147 changed files with 199 additions and 201 deletions

View file

@ -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)