spec/examples/producer_consumer_spec.rb in agent-0.10.0 vs spec/examples/producer_consumer_spec.rb in agent-0.11.0

- old
+ new

@@ -64,12 +64,12 @@ go!(c, 3, s, &producer) sleep 0.1 go!(c, 3, s, &consumer) messages = [s.pop[0], s.pop[0]] - messages.should include("producer finished") - messages.should include("consumer finished") + expect(messages).to include("producer finished") + expect(messages).to include("consumer finished") c.close s.close end @@ -83,11 +83,11 @@ c = channel!(Integer) g = Generator.new(:incr, c) go!(g, &producer) - c.receive[0].should == 1 - c.receive[0].should == 2 - c.receive[0].should == 3 + expect(c.receive[0]).to eq(1) + expect(c.receive[0]).to eq(2) + expect(c.receive[0]).to eq(3) c.close end end \ No newline at end of file