From b93a23827a2244ec730be1b46ec44fb368d00396 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 14 Sep 2010 13:39:33 -0700 Subject: adding an EXISTS node, update method will generate an IN clause --- spec/arel/table_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/arel/table_spec.rb') diff --git a/spec/arel/table_spec.rb b/spec/arel/table_spec.rb index 7cc0b20a25..5b68040aac 100644 --- a/spec/arel/table_spec.rb +++ b/spec/arel/table_spec.rb @@ -6,6 +6,12 @@ module Arel @relation = Table.new(:users) end + describe 'primary_key' do + it 'should return an attribute' do + check @relation.primary_key.name.should == :id + end + end + describe 'having' do it 'adds a having clause' do mgr = @relation.having @relation[:id].eq(10) -- cgit v1.2.3