diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-23 13:25:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-23 13:25:54 -0700 |
commit | 9ca3f4b6b99553e684714637949a7576cedea97a (patch) | |
tree | 74da54535278ddd8aa2134230e51a973c90b8f11 /test | |
parent | 19c6eeb7b08917622e5e4e01175466dd092592d7 (diff) | |
parent | c78227d9b219933f54cecefb99c72bb231fbb8f2 (diff) | |
download | rails-9ca3f4b6b99553e684714637949a7576cedea97a.tar.gz rails-9ca3f4b6b99553e684714637949a7576cedea97a.tar.bz2 rails-9ca3f4b6b99553e684714637949a7576cedea97a.zip |
Merge pull request #121 from ernie/predications-on-grouping
Include Predications in Grouping
Diffstat (limited to 'test')
-rw-r--r-- | test/nodes/test_grouping.rb | 13 |
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 + |