diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-05-06 14:14:56 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-05-06 14:14:56 -0300 |
commit | a7dea38204f3c40e4d0c3f29ebe17af818659697 (patch) | |
tree | 3a3a912b74b15509c715ec5028b18da49bd30d44 /spec/arel/unit/relations/delete_spec.rb | |
parent | de843c86518e4ac871d4bb5b0873bb6c184ac304 (diff) | |
download | rails-a7dea38204f3c40e4d0c3f29ebe17af818659697.tar.gz rails-a7dea38204f3c40e4d0c3f29ebe17af818659697.tar.bz2 rails-a7dea38204f3c40e4d0c3f29ebe17af818659697.zip |
Don't depend engine select_value(s) method. Quoting should be performed by connection not ARel
Diffstat (limited to 'spec/arel/unit/relations/delete_spec.rb')
-rw-r--r-- | spec/arel/unit/relations/delete_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/arel/unit/relations/delete_spec.rb b/spec/arel/unit/relations/delete_spec.rb index 46c2ec9143..fa887d20fd 100644 --- a/spec/arel/unit/relations/delete_spec.rb +++ b/spec/arel/unit/relations/delete_spec.rb @@ -5,7 +5,7 @@ module Arel before do @relation = Table.new(:users) end - + describe '#to_sql' do it 'manufactures sql deleting a table relation' do Deletion.new(@relation).to_sql.should be_like(" @@ -13,7 +13,7 @@ module Arel FROM `users` ") end - + it 'manufactures sql deleting a where relation' do Deletion.new(@relation.where(@relation[:id].eq(1))).to_sql.should be_like(" DELETE @@ -21,7 +21,7 @@ module Arel WHERE `users`.`id` = 1 ") end - + it "manufactures sql deleting a ranged relation" do Deletion.new(@relation.take(1)).to_sql.should be_like(" DELETE @@ -30,7 +30,7 @@ module Arel ") end end - + describe '#call' do it 'executes a delete on the connection' do deletion = Deletion.new(@relation) @@ -39,4 +39,4 @@ module Arel end end end -end
\ No newline at end of file +end |