summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/chars_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/chars_spec.rb')
-rw-r--r--spec/ruby/core/io/chars_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/ruby/core/io/chars_spec.rb b/spec/ruby/core/io/chars_spec.rb
index cd5dbbce4f..2efbdd7333 100644
--- a/spec/ruby/core/io/chars_spec.rb
+++ b/spec/ruby/core/io/chars_spec.rb
@@ -3,10 +3,12 @@ require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative 'shared/chars'
-describe "IO#chars" do
- it_behaves_like :io_chars, :chars
-end
+ruby_version_is ''...'2.8' do
+ describe "IO#chars" do
+ it_behaves_like :io_chars, :chars
+ end
-describe "IO#chars" do
- it_behaves_like :io_chars_empty, :chars
+ describe "IO#chars" do
+ it_behaves_like :io_chars_empty, :chars
+ end
end