summaryrefslogtreecommitdiff
path: root/spec/ruby/core/numeric/shared/step.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/numeric/shared/step.rb')
-rw-r--r--spec/ruby/core/numeric/shared/step.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/ruby/core/numeric/shared/step.rb b/spec/ruby/core/numeric/shared/step.rb
index 72f33016d4..a4fe74f9db 100644
--- a/spec/ruby/core/numeric/shared/step.rb
+++ b/spec/ruby/core/numeric/shared/step.rb
@@ -257,9 +257,7 @@ describe :numeric_step, :shared => true do
describe "when no block is given" do
step_enum_class = Enumerator
- ruby_version_is "2.6" do
- step_enum_class = Enumerator::ArithmeticSequence
- end
+ step_enum_class = Enumerator::ArithmeticSequence
ruby_version_is ""..."3.0" do
it "returns an #{step_enum_class} when step is 0" do