diff options
Diffstat (limited to 'spec/ruby/shared/rational/hash.rb')
-rw-r--r-- | spec/ruby/shared/rational/hash.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/shared/rational/hash.rb b/spec/ruby/shared/rational/hash.rb new file mode 100644 index 0000000000..a83ce49afb --- /dev/null +++ b/spec/ruby/shared/rational/hash.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../../spec_helper', __FILE__) + +describe :rational_hash, shared: true do + # 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 |