diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-12-15 11:37:01 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 11:37:01 +1300 |
commit | d20bd06a97555a4493458d866590107da6cb21f4 (patch) | |
tree | d3978c04ad009762a548c412b44ba4c12bec17e9 /spec/ruby/library/io-wait/wait_readable_spec.rb | |
parent | 55f56eb66e9045943c4b61876b67bcd971666788 (diff) |
Remove `require 'io/wait'` where it's no longer necessary. (#6932)
* Remove `require 'io/wait'` as it's part of core now.
* Update ruby specs using version gates.
* Add note about why it's conditional.
Notes
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'spec/ruby/library/io-wait/wait_readable_spec.rb')
-rw-r--r-- | spec/ruby/library/io-wait/wait_readable_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/library/io-wait/wait_readable_spec.rb b/spec/ruby/library/io-wait/wait_readable_spec.rb index 48e0b4ef7d..06ffbda5c8 100644 --- a/spec/ruby/library/io-wait/wait_readable_spec.rb +++ b/spec/ruby/library/io-wait/wait_readable_spec.rb @@ -1,6 +1,8 @@ require_relative '../../spec_helper' -require 'io/wait' +ruby_version_is ''...'3.2' do + require 'io/wait' +end describe "IO#wait_readable" do before :each do |