diff options
Diffstat (limited to 'spec/ruby/core/rational/hash_spec.rb')
| -rw-r--r-- | spec/ruby/core/rational/hash_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/ruby/core/rational/hash_spec.rb b/spec/ruby/core/rational/hash_spec.rb index a17572d57e..528638056a 100644 --- a/spec/ruby/core/rational/hash_spec.rb +++ b/spec/ruby/core/rational/hash_spec.rb @@ -1,5 +1,9 @@ -require File.expand_path('../../../shared/rational/hash', __FILE__) +require_relative "../../spec_helper" describe "Rational#hash" do - it_behaves_like(:rational_hash, :hash) + # BUG: Rational(2, 3).hash == Rational(3, 2).hash + it "is static" do + Rational(2, 3).hash.should == Rational(2, 3).hash + Rational(2, 4).hash.should_not == Rational(2, 3).hash + end end |
