aboutsummaryrefslogtreecommitdiffstats
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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/numeric/shared/step.rb b/spec/ruby/core/numeric/shared/step.rb
index fa703b7554..f058c64a50 100644
--- a/spec/ruby/core/numeric/shared/step.rb
+++ b/spec/ruby/core/numeric/shared/step.rb
@@ -259,15 +259,15 @@ describe :numeric_step, :shared => true do
describe "when no block is given" do
it "returns an Enumerator when step is 0" do
- 1.send(@method, *@step_args.call(2, 0)).should be_an_instance_of(Enumerator)
+ 1.send(@method, *@step_args.call(2, 0)).should be_an_instance_of(Enumerator::ArithmeticSequence)
end
it "returns an Enumerator when not passed a block and self > stop" do
- 1.send(@method, *@step_args.call(0, 2)).should be_an_instance_of(Enumerator)
+ 1.send(@method, *@step_args.call(0, 2)).should be_an_instance_of(Enumerator::ArithmeticSequence)
end
it "returns an Enumerator when not passed a block and self < stop" do
- 1.send(@method, *@step_args.call(2, 3)).should be_an_instance_of(Enumerator)
+ 1.send(@method, *@step_args.call(2, 3)).should be_an_instance_of(Enumerator::ArithmeticSequence)
end
it "returns an Enumerator that uses the given step" do