aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'test/nodes')
-rw-r--r--test/nodes/test_casted.rb16
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