Sha256: b4edffdd60e5c8361dded9119400b22c73c28fcdda55be7d3e4e26e7219e8b11
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
describe RabbitMQ::Definition do describe ".create" do it "calls the create command with the right parameters" do expect(RabbitMQ::Definition::Create).to receive(:new) .with(instance_of(RabbitMQ::HTTP::Client), false, ["/"]) .and_return(double(:execute => true)) RabbitMQ::Definition.create(["/"]) end end describe ".drop" do it "calls the drop command with the right parameters" do expect(RabbitMQ::Definition::Drop).to receive(:new) .with(instance_of(RabbitMQ::HTTP::Client), false) .and_return(double(:execute => true)) RabbitMQ::Definition.drop end end describe ".dump" do it "calls the drop command with the right parameters" do expect(RabbitMQ::Definition::Dump).to receive(:new) .with(instance_of(RabbitMQ::HTTP::Client), false, ["/"]) .and_return(double(:execute => true)) RabbitMQ::Definition.dump(["/"]) end end describe ".load" do it "calls the drop command with the right parameters" do expect(RabbitMQ::Definition::Load).to receive(:new) .with(instance_of(RabbitMQ::HTTP::Client), false) .and_return(double(:execute => true)) RabbitMQ::Definition.load end end end
Version data entries
4 entries across 4 versions & 1 rubygems