diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/arel/algebra/unit/relations/order_spec.rb | 2 | ||||
-rw-r--r-- | spec/arel/engines/sql/unit/primitives/value_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/arel/algebra/unit/relations/order_spec.rb b/spec/arel/algebra/unit/relations/order_spec.rb index 4190901024..9fcdffe340 100644 --- a/spec/arel/algebra/unit/relations/order_spec.rb +++ b/spec/arel/algebra/unit/relations/order_spec.rb @@ -6,7 +6,7 @@ module Arel @relation = Table.new(:users) @attribute = @relation[:id] end - + describe "#==" do it "returns true when the Orders are for the same attribute and direction" do Ascending.new(@attribute).should == Ascending.new(@attribute) diff --git a/spec/arel/engines/sql/unit/primitives/value_spec.rb b/spec/arel/engines/sql/unit/primitives/value_spec.rb index c8f03fc270..807090e31a 100644 --- a/spec/arel/engines/sql/unit/primitives/value_spec.rb +++ b/spec/arel/engines/sql/unit/primitives/value_spec.rb @@ -9,11 +9,11 @@ module Arel describe '#to_sql' do it "appropriately quotes the value" do Value.new(1, @relation).to_sql.should be_like('1') - + adapter_is_not :postgresql do Value.new('asdf', @relation).to_sql.should be_like("'asdf'") end - + adapter_is :postgresql do Value.new('asdf', @relation).to_sql.should be_like("E'asdf'") end |