summaryrefslogtreecommitdiff
path: root/spec/ruby/core/range/eql_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/range/eql_spec.rb')
-rw-r--r--spec/ruby/core/range/eql_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/core/range/eql_spec.rb b/spec/ruby/core/range/eql_spec.rb
new file mode 100644
index 0000000000..cdc19c9331
--- /dev/null
+++ b/spec/ruby/core/range/eql_spec.rb
@@ -0,0 +1,10 @@
+require_relative '../../spec_helper'
+require_relative 'shared/equal_value'
+
+describe "Range#eql?" do
+ it_behaves_like :range_eql, :eql?
+
+ it "returns false if the endpoints are not eql?" do
+ (0..1).should_not.eql?(0..1.0)
+ end
+end