diff options
author | Aaron Ackerman <theron17@gmail.com> | 2014-01-04 14:56:45 -0600 |
---|---|---|
committer | Aaron Ackerman <theron17@gmail.com> | 2014-01-04 14:56:45 -0600 |
commit | bc37fd4370ce63afc4e85eea43dcce49b61e7838 (patch) | |
tree | 94860a49fe93b77052e80c47cf0bb71aaa012a7f /test | |
parent | 1b084a82cf80625044e6c8c43a6887912e15d32b (diff) | |
download | rails-bc37fd4370ce63afc4e85eea43dcce49b61e7838.tar.gz rails-bc37fd4370ce63afc4e85eea43dcce49b61e7838.tar.bz2 rails-bc37fd4370ce63afc4e85eea43dcce49b61e7838.zip |
Assert that SelectManager#project accepts a raw String
Diffstat (limited to 'test')
-rw-r--r-- | test/test_select_manager.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb index b2db28753b..2edd69a149 100644 --- a/test/test_select_manager.rb +++ b/test/test_select_manager.rb @@ -1005,16 +1005,14 @@ module Arel it 'takes strings' do manager = Arel::SelectManager.new Table.engine - manager.project Nodes::SqlLiteral.new('*') + manager.project '*' manager.to_sql.must_be_like %{ SELECT * } end it "takes sql literals" do manager = Arel::SelectManager.new Table.engine manager.project Nodes::SqlLiteral.new '*' - manager.to_sql.must_be_like %{ - SELECT * - } + manager.to_sql.must_be_like %{ SELECT * } end end |