Sha256: b2403b01fa3f394e92bc2f290bf6a46117a768a2f218282ad37baccd89cfe860

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe DataMapper::Adapters::AbstractAdapter do
    
  before(:all) do
    fixtures(:zoos)
  end

  it "should return a count of the selected table" do
    Zoo.count.should be_a_kind_of(Integer)
    Zoo.count.should == Zoo.all.size
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datamapper-0.2.2 spec/count_command_spec.rb
datamapper-0.2.1 spec/count_command_spec.rb
datamapper-0.2.3 spec/count_command_spec.rb
datamapper-0.2.4 spec/count_command_spec.rb
datamapper-0.2.5 spec/count_command_spec.rb