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/where_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/where_spec.rb')
-rw-r--r-- | spec/arel/unit/relations/where_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/arel/unit/relations/where_spec.rb b/spec/arel/unit/relations/where_spec.rb index aa14fd7bdc..8ef4d54b63 100644 --- a/spec/arel/unit/relations/where_spec.rb +++ b/spec/arel/unit/relations/where_spec.rb @@ -6,15 +6,15 @@ module Arel @relation = Table.new(:users) @predicate = @relation[:id].eq(1) end - + describe '#initialize' do it "manufactures nested where relations if multiple predicates are provided" do - another_predicate = @relation[:name].lt(2) + another_predicate = @relation[:name].lt(2) Where.new(@relation, @predicate, another_predicate). \ should == Where.new(Where.new(@relation, another_predicate), @predicate) end end - + describe '#to_sql' do describe 'when given a predicate' do it "manufactures sql with where clause conditions" do @@ -25,7 +25,7 @@ module Arel ") end end - + describe 'when given a string' do it "passes the string through to the where clause" do Where.new(@relation, 'asdf').to_sql.should be_like(" @@ -37,4 +37,4 @@ module Arel end end end -end
\ No newline at end of file +end |