diff options
Diffstat (limited to 'spec/ruby/core/symbol/comparison_spec.rb')
| -rw-r--r-- | spec/ruby/core/symbol/comparison_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/symbol/comparison_spec.rb b/spec/ruby/core/symbol/comparison_spec.rb index 91edd1f0d9..6d56176e97 100644 --- a/spec/ruby/core/symbol/comparison_spec.rb +++ b/spec/ruby/core/symbol/comparison_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "Symbol#<=> with Symbol" do it "compares individual characters based on their ascii value" do @@ -37,15 +37,15 @@ end describe "Symbol#<=>" do it "returns nil if other is a String" do - (:abc <=> "abc").should be_nil + (:abc <=> "abc").should == nil end - it "returns nil if other is a Fixnum" do - (:abc <=> 1).should be_nil + it "returns nil if other is an Integer" do + (:abc <=> 1).should == nil end it "returns nil if other is an object" do obj = mock("string <=>") - (:abc <=> obj).should be_nil + (:abc <=> obj).should == nil end end |
