diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 18:19:31 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 18:19:31 -0700 |
commit | e4e81cdcf00d9bc023502bf1ce2e6dad40296835 (patch) | |
tree | 44fd9586bd053a737edca9ad34401eb5ccde739c /spec/arel/nodes | |
parent | 458ef3fb7d51ef2e9d1cd9513bdc225daffe8146 (diff) | |
download | rails-e4e81cdcf00d9bc023502bf1ce2e6dad40296835.tar.gz rails-e4e81cdcf00d9bc023502bf1ce2e6dad40296835.tar.bz2 rails-e4e81cdcf00d9bc023502bf1ce2e6dad40296835.zip |
backwards compat
Diffstat (limited to 'spec/arel/nodes')
-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 |