From a7dea38204f3c40e4d0c3f29ebe17af818659697 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Wed, 6 May 2009 14:14:56 -0300 Subject: Don't depend engine select_value(s) method. Quoting should be performed by connection not ARel --- spec/arel/unit/primitives/value_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/arel/unit/primitives') diff --git a/spec/arel/unit/primitives/value_spec.rb b/spec/arel/unit/primitives/value_spec.rb index 87425c780d..ba9a80bb49 100644 --- a/spec/arel/unit/primitives/value_spec.rb +++ b/spec/arel/unit/primitives/value_spec.rb @@ -5,7 +5,7 @@ module Arel 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') @@ -25,4 +25,4 @@ module Arel end end end -end \ No newline at end of file +end -- cgit v1.2.3