diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-16 14:43:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-16 14:43:18 -0700 |
commit | 4146538dfd7066eb38fff29e73c739912acad13f (patch) | |
tree | 880fd1fed4c5462ce2212c2565c51f3e3326ff3e /spec/arel/attributes | |
parent | d12580a7ee43dad449a1da208ec60c70c183d7ee (diff) | |
download | rails-4146538dfd7066eb38fff29e73c739912acad13f.tar.gz rails-4146538dfd7066eb38fff29e73c739912acad13f.tar.bz2 rails-4146538dfd7066eb38fff29e73c739912acad13f.zip |
IN seems to work
Diffstat (limited to 'spec/arel/attributes')
-rw-r--r-- | spec/arel/attributes/attribute_spec.rb | 16 |
1 files changed, 14 insertions, 2 deletions
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 |