From e5454e8d8adcf53829a44702f2328f8ea119a16a Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Sat, 3 Apr 2010 10:40:46 -0700 Subject: Return nil when looking up an attribute by name that does not exist instead of returning a fictitious attribute. --- spec/engines/sql/unit/primitives/attribute_spec.rb | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'spec/engines') diff --git a/spec/engines/sql/unit/primitives/attribute_spec.rb b/spec/engines/sql/unit/primitives/attribute_spec.rb index c467d902ad..9f864dd3a1 100644 --- a/spec/engines/sql/unit/primitives/attribute_spec.rb +++ b/spec/engines/sql/unit/primitives/attribute_spec.rb @@ -31,25 +31,6 @@ module Arel end end end - - describe 'for an inexistent attribute' do - it "manufactures sql" do - sql = @relation[:does_not_exist].to_sql - - adapter_is :mysql do - sql.should be_like(%Q{`users`.`does_not_exist`}) - end - - adapter_is :oracle do - sql.should be_like(%Q{"USERS"."DOEST_NOT_EXIST"}) - end - - adapter_is_not :mysql, :oracle do - sql.should be_like(%Q{"users"."does_not_exist"}) - end - end - end - end end end -- cgit v1.2.3