From 4146538dfd7066eb38fff29e73c739912acad13f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 16 Aug 2010 14:43:18 -0700 Subject: IN seems to work --- spec/arel/attributes/attribute_spec.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'spec/arel/attributes') diff --git a/spec/arel/attributes/attribute_spec.rb b/spec/arel/attributes/attribute_spec.rb index ef0e0787fa..e6e6483e64 100644 --- a/spec/arel/attributes/attribute_spec.rb +++ b/spec/arel/attributes/attribute_spec.rb @@ -7,11 +7,23 @@ module Arel it 'should return an equality node' do attribute = Attribute.new nil, nil, nil equality = attribute.eq 1 - equality.left.should == attribute - equality.right.should == 1 + check equality.left.should == attribute + check equality.right.should == 1 equality.should be_kind_of Nodes::Equality end end + + describe '#in' do + it 'can be constructed with a list' do + end + + it 'should return an in node' do + attribute = Attribute.new nil, nil, nil + node = Nodes::In.new attribute, [1,2,3] + check node.left.should == attribute + check node.right.should == [1, 2, 3] + end + end end describe 'equality' do -- cgit v1.2.3