Sha256: 7cd9fbe2d35ec40ec02f7587b13768d83559d331499b6f28c76326c182924b16

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

shared_examples 'an adapter context' do
  it { should be_a MessageDriver::Adapters::ContextBase }

  its(:adapter) { should be adapter }

  it 'is initially valid' do
    should be_valid
  end

  describe '#invalidate' do
    it 'causes the context to become invalid' do
      subject.invalidate
      expect(subject).to_not be_valid
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message-driver-0.4.0 spec/support/shared/context_examples.rb