spec/queues_spec.rb in agent-0.10.0 vs spec/queues_spec.rb in agent-0.11.0

- old
+ new

@@ -5,24 +5,24 @@ Agent::Queues.clear end it "should register queues" do Agent::Queues.register("foo", String, 10) - Agent::Queues["foo"].should be_a(Agent::Queue) - Agent::Queues["foo"].type.should == String - Agent::Queues["foo"].max.should == 10 + expect(Agent::Queues["foo"]).to be_a(Agent::Queue) + expect(Agent::Queues["foo"].type).to eq(String) + expect(Agent::Queues["foo"].max).to eq(10) end it "should delete queues" do Agent::Queues.register("foo", String, 10) Agent::Queues.delete("foo") - Agent::Queues["foo"].should be_nil + expect(Agent::Queues["foo"]).to be_nil end it "should remove all queues queues" do Agent::Queues.register("foo", String, 10) Agent::Queues.register("bar", String, 10) Agent::Queues.clear - Agent::Queues["foo"].should be_nil - Agent::Queues["bar"].should be_nil + expect(Agent::Queues["foo"]).to be_nil + expect(Agent::Queues["bar"]).to be_nil end end