diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2014-02-10 18:58:54 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2014-02-10 19:44:00 -0200 |
commit | 7bf868e320efb0b53b0ce51afb925174e5db2377 (patch) | |
tree | c44ee94b2761008c817dcb04055a9f6dda0be4c0 /test | |
parent | a7d06943dd54b2d16d63b2b9a67bb97820c7c8d3 (diff) | |
download | rails-7bf868e320efb0b53b0ce51afb925174e5db2377.tar.gz rails-7bf868e320efb0b53b0ce51afb925174e5db2377.tar.bz2 rails-7bf868e320efb0b53b0ce51afb925174e5db2377.zip |
Remove deprecated Arel::Expression
Diffstat (limited to 'test')
-rw-r--r-- | test/nodes/test_count.rb | 6 | ||||
-rw-r--r-- | test/test_select_manager.rb | 12 |
2 files changed, 0 insertions, 18 deletions
diff --git a/test/nodes/test_count.rb b/test/nodes/test_count.rb index 88d2a694c8..a9a329420e 100644 --- a/test/nodes/test_count.rb +++ b/test/nodes/test_count.rb @@ -1,12 +1,6 @@ require 'helper' describe Arel::Nodes::Count do - describe 'backwards compatibility' do - it 'must be an expression' do - Arel::Nodes::Count.new('foo').must_be_kind_of Arel::Expression - end - end - describe "as" do it 'should alias the count' do table = Arel::Table.new :users diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb index c1575a7929..cf8903a05b 100644 --- a/test/test_select_manager.rb +++ b/test/test_select_manager.rb @@ -449,18 +449,6 @@ module Arel SELECT * FROM "users" ORDER BY "users"."id" DESC } end - - it 'has order attributes for expressions' do - table = Table.new :users - manager = Arel::SelectManager.new Table.engine - manager.project Nodes::SqlLiteral.new '*' - manager.from table - manager.order table[:id].count.desc - manager.to_sql.must_be_like %{ - SELECT * FROM "users" ORDER BY COUNT("users"."id") DESC - } - end - end describe 'on' do |