spec/arel/engines/sql/unit/primitives/value_spec.rb in arel-0.1.0 vs spec/arel/engines/sql/unit/primitives/value_spec.rb in arel-0.1.2

- old
+ new

@@ -1,20 +1,20 @@ -require File.join(File.dirname(__FILE__), '..', '..', '..', '..', '..', 'spec_helper') +require 'spec_helper' module Arel describe Value do before do @relation = Table.new(:users) end 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 end end