Sha256: 78743585dce223512d763102dcf790a8e450de9442c51e386a976f0873c3ddcf

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

=begin
context 'Sub-selection' do
  
  specify 'should return a Cup' do
    Animal[:id.select => { :name => 'cup' }].name.should == 'Cup'
  end
  
  specify 'should return all exhibits for Galveston zoo' do
    Exhibit.all(:zoo_id.select(Zoo) => { :name => 'Galveston' }).size.should == 3
  end
  
  specify 'should allow a sub-select in the select-list' do
    Animal[:select => [ :id.count ]]
  end
end
=end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datamapper-0.1.0 spec/sub_select.rb
datamapper-0.1.1 spec/sub_select.rb