summaryrefslogtreecommitdiff
path: root/spec/ruby/core/range
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/range')
-rw-r--r--spec/ruby/core/range/eql_spec.rb2
-rw-r--r--spec/ruby/core/range/equal_value_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/range/eql_spec.rb b/spec/ruby/core/range/eql_spec.rb
index c62fa0076e..fa6c71840e 100644
--- a/spec/ruby/core/range/eql_spec.rb
+++ b/spec/ruby/core/range/eql_spec.rb
@@ -5,6 +5,6 @@ describe "Range#eql?" do
it_behaves_like :range_eql, :eql?
it "returns false if the endpoints are not eql?" do
- (0..1).send(@method, 0..1.0).should == false
+ (0..1).should_not eql(0..1.0)
end
end
diff --git a/spec/ruby/core/range/equal_value_spec.rb b/spec/ruby/core/range/equal_value_spec.rb
index baa5d0d411..889557fc2a 100644
--- a/spec/ruby/core/range/equal_value_spec.rb
+++ b/spec/ruby/core/range/equal_value_spec.rb
@@ -5,6 +5,6 @@ describe "Range#==" do
it_behaves_like :range_eql, :==
it "returns true if the endpoints are ==" do
- (0..1).send(@method, 0..1.0).should == true
+ (0..1).should == (0..1.0)
end
end