aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes
diff options
context:
space:
mode:
authorErnie Miller <ernie@erniemiller.org>2012-05-19 11:10:47 -0400
committerErnie Miller <ernie@erniemiller.org>2012-05-19 11:10:47 -0400
commitc78227d9b219933f54cecefb99c72bb231fbb8f2 (patch)
tree74da54535278ddd8aa2134230e51a973c90b8f11 /test/nodes
parent19c6eeb7b08917622e5e4e01175466dd092592d7 (diff)
downloadrails-c78227d9b219933f54cecefb99c72bb231fbb8f2.tar.gz
rails-c78227d9b219933f54cecefb99c72bb231fbb8f2.tar.bz2
rails-c78227d9b219933f54cecefb99c72bb231fbb8f2.zip
Include Predications in Grouping
Also, removed unused ordering.rb file, since it is identical to the one being created in unary.rb already, and isn't required anywhere.
Diffstat (limited to 'test/nodes')
-rw-r--r--test/nodes/test_grouping.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/nodes/test_grouping.rb b/test/nodes/test_grouping.rb
new file mode 100644
index 0000000000..3f84ac301e
--- /dev/null
+++ b/test/nodes/test_grouping.rb
@@ -0,0 +1,13 @@
+require 'helper'
+
+module Arel
+ module Nodes
+ describe 'Grouping' do
+ it 'should create Equality nodes' do
+ grouping = Grouping.new('foo')
+ grouping.eq('foo').to_sql.must_be_like %q{('foo') = 'foo'}
+ end
+ end
+ end
+end
+