Sha256: 52cdebf66a10f2cbcc67d8b2413d82a15f0f676de346a86d6bbf30d0d55b632d

Contents?: true

Size: 383 Bytes

Versions: 11

Compression:

Stored size: 383 Bytes

Contents

shared_examples :features do
  it 'should report correct features' do
    expect(store.features).to contain_exactly(*features)
  end

  it 'should have frozen features' do
    store.features.frozen?.should be true
  end

  it 'should have #supports?' do
    features.each do |f|
      store.supports?(f).should be true
    end
    store.supports?(:unknown).should be false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
moneta-1.5.2 spec/features/features.rb
moneta-1.5.1 spec/features/features.rb
moneta-1.5.0 spec/features/features.rb
moneta-1.4.2 spec/features/features.rb
moneta-1.4.1 spec/features/features.rb
moneta-1.4.0 spec/features/features.rb
moneta-1.3.0 spec/features/features.rb
moneta-1.2.1 spec/features/features.rb
moneta-1.2.0 spec/features/features.rb
moneta-1.1.1 spec/features/features.rb
moneta-1.1.0 spec/features/features.rb