Sha256: 2aa144e0339c85a9accddd4d4db986c39021c057e18c2f73592fb852da355435

Contents?: true

Size: 366 Bytes

Versions: 8

Compression:

Stored size: 366 Bytes

Contents

describe Pheme::MessageHandler do
  before(:each) { use_default_configuration! }
  let(:message) { RecursiveOpenStruct.new(status: "complete") }
  subject { ExampleMessageHandler.new(message: message) }

  describe "#handle" do
    it "handles the message correctly" do
      expect(Pheme).to receive(:log).with(:info, "Done")
      subject.handle
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pheme-0.0.8 spec/message_handler_spec.rb
pheme-0.0.7 spec/message_handler_spec.rb
pheme-0.0.6 spec/message_handler_spec.rb
pheme-0.0.5 spec/message_handler_spec.rb
pheme-0.0.4 spec/message_handler_spec.rb
pheme-0.0.3 spec/message_handler_spec.rb
pheme-0.0.2 spec/message_handler_spec.rb
pheme-0.0.1 spec/message_handler_spec.rb