diff options
Diffstat (limited to 'spec/arel/nodes/count_spec.rb')
-rw-r--r-- | spec/arel/nodes/count_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/arel/nodes/count_spec.rb b/spec/arel/nodes/count_spec.rb index 7013a16429..185b4d8eb9 100644 --- a/spec/arel/nodes/count_spec.rb +++ b/spec/arel/nodes/count_spec.rb @@ -1,6 +1,12 @@ require 'spec_helper' describe Arel::Nodes::Count do + describe 'backwards compatibility' do + it 'must be an expression' do + Arel::Nodes::Count.new('foo').should be_kind_of Arel::Expression + end + end + describe "as" do it 'should alias the count' do table = Arel::Table.new :users |