diff options
author | Bert Bruynooghe <bert.bruynooghe@up-nxt.com> | 2016-02-17 22:30:10 +0100 |
---|---|---|
committer | Bert Bruynooghe <bert.bruynooghe@up-nxt.com> | 2016-02-17 22:30:10 +0100 |
commit | df9dd77ee5cf2610599942555e49dedd678a8e8b (patch) | |
tree | ba4d835e051c0258610560a5f409a9f10e704912 /test | |
parent | 148348278241998e004c411deb3a6cfb7cf71213 (diff) | |
download | rails-df9dd77ee5cf2610599942555e49dedd678a8e8b.tar.gz rails-df9dd77ee5cf2610599942555e49dedd678a8e8b.tar.bz2 rails-df9dd77ee5cf2610599942555e49dedd678a8e8b.zip |
added Casted#hash
Diffstat (limited to 'test')
-rw-r--r-- | test/nodes/test_casted.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/nodes/test_casted.rb b/test/nodes/test_casted.rb new file mode 100644 index 0000000000..6d775e17ec --- /dev/null +++ b/test/nodes/test_casted.rb @@ -0,0 +1,16 @@ +require 'helper' + +module Arel + module Nodes + describe Casted do + describe '#hash' do + it 'is equal when eql? returns true' do + one = Casted.new 1, 2 + also_one = Casted.new 1, 2 + + assert_equal one.hash, also_one.hash + end + end + end + end +end |