diff options
Diffstat (limited to 'spec/ruby/core/range/eql_spec.rb')
| -rw-r--r-- | spec/ruby/core/range/eql_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/range/eql_spec.rb b/spec/ruby/core/range/eql_spec.rb index 2d495ee175..cdc19c9331 100644 --- a/spec/ruby/core/range/eql_spec.rb +++ b/spec/ruby/core/range/eql_spec.rb @@ -1,10 +1,10 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../shared/equal_value', __FILE__) +require_relative '../../spec_helper' +require_relative 'shared/equal_value' describe "Range#eql?" do - it_behaves_like(:range_eql, :eql?) + 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 |
