Sha256: 92550478eda0c87eef8e6736b6b395b905d6901e7bc08ee67ee5af4f4a551c43
Contents?: true
Size: 835 Bytes
Versions: 4
Compression:
Stored size: 835 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' require 'rosetta_queue/adapters/null' module RosettaQueue module Gateway describe NullAdapter do def null_adapter NullAdapter.new({:user => 'user', :password => 'password', :host => 'host', :port => 'port'}) end %w[disconnect receive receive_with send_message subscribe unsubscribe].each do |adapter_method| it "should respond to ##{adapter_method}" do null_adapter.should respond_to(adapter_method) end end it "should raise an error when #receive is called" do running { null_adapter.receive }.should raise_error end it "should raise an error when #receive_with is called" do running { null_adapter.receive_with('consumer') }.should raise_error end end end end
Version data entries
4 entries across 4 versions & 2 rubygems