Sha256: 4395f85859f7512a53da6fae90fd0ca9086a959bdd3c4903721d0c1f7dbedee7

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.3.0 spec/support/shared/context_examples.rb