diff options
author | Samuel Williams <[email protected]> | 2022-12-15 11:37:01 +1300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-15 11:37:01 +1300 |
commit | d20bd06a97555a4493458d866590107da6cb21f4 (patch) | |
tree | d3978c04ad009762a548c412b44ba4c12bec17e9 /spec/ruby/library/io-wait/wait_writable_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 <[email protected]>
Diffstat (limited to 'spec/ruby/library/io-wait/wait_writable_spec.rb')
-rw-r--r-- | spec/ruby/library/io-wait/wait_writable_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/library/io-wait/wait_writable_spec.rb b/spec/ruby/library/io-wait/wait_writable_spec.rb index 5900a0c566..8c44780d39 100644 --- a/spec/ruby/library/io-wait/wait_writable_spec.rb +++ b/spec/ruby/library/io-wait/wait_writable_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_writable" do it "waits for the IO to become writable with no timeout" do |