Sha256: 5fbcbdf8ae99923dba92da249ef914c8de18a3646563aa6e94020f39467a77ec
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
require 'spec_helper' module MessageDriver::Adapters describe Base do class TestAdapter < described_class def initialize(configuration) end end subject { TestAdapter.new({}) } describe "#publish" do it "raises an error" do expect { subject.publish(:destination, {foo: "bar"}) }.to raise_error "Must be implemented in subclass" end end describe "#pop_message" do it "raises an error" do expect { subject.pop_message(:destination) }.to raise_error "Must be implemented in subclass" end end describe "#stop" do it "raises an error" do expect { subject.stop }.to raise_error "Must be implemented in subclass" end end describe "#create_destination" do it "raises an error" do expect { subject.create_destination("foo") }.to raise_error "Must be implemented in subclass" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
message-driver-0.1.0 | spec/units/message_driver/adapters/base_spec.rb |