Sha256: e5f233ac2b17fa687aa8d9620e6fa9867a5aabdec9465027a386e17b4d445dca

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

shared_examples_for RbPod::Collection do
  it 'should be a collection' do
    collection.should be_kind_of(RbPod::Collection)
  end

  it 'should implement #each' do
    collection.should respond_to(:each)
  end

  it 'should implement #size' do
    collection.should respond_to(:size)
  end

  it 'should implement #first' do
    collection.should respond_to(:first)
  end

  it 'should implement #last' do
    collection.should respond_to(:last)
  end

  it 'should implement #[]' do
    collection.should respond_to(:[])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbpod-0.0.8 spec/rbpod/collection_spec.rb
rbpod-0.0.7 spec/rbpod/collection_spec.rb
rbpod-0.0.6 spec/rbpod/collection_spec.rb
rbpod-0.0.5 spec/rbpod/collection_spec.rb