aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'test/nodes')
-rw-r--r--test/nodes/test_bind_param.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/nodes/test_bind_param.rb b/test/nodes/test_bind_param.rb
new file mode 100644
index 0000000000..ea008f4c99
--- /dev/null
+++ b/test/nodes/test_bind_param.rb
@@ -0,0 +1,15 @@
+require 'helper'
+
+module Arel
+ module Nodes
+ describe 'BindParam' do
+ it 'is equal to other bind params' do
+ BindParam.new.must_equal(BindParam.new)
+ end
+
+ it 'is not equal to other nodes' do
+ BindParam.new.wont_equal(Node.new)
+ end
+ end
+ end
+end