spec/specs/received_criteria_spec.rb in fakes-rspec-2.0.0 vs spec/specs/received_criteria_spec.rb in fakes-rspec-2.1.0

- old
+ new

@@ -8,30 +8,30 @@ item = fake item.hello sut = ReceivedCriteria.new(item.received(:hello)) - sut.is_satisfied_by.should be_true + expect(sut.is_satisfied_by).to be_truthy end end context "when matching a call made with arguments" do let(:item){fake} before (:each) do item.hello("world") @sut = ReceivedCriteria.new(item.received(:hello)) end context "and we care about the arguments it was called with" do it "should match if it received the correct call" do - @sut.is_satisfied_by("world").should be_true + expect(@sut.is_satisfied_by("world")).to be_truthy end it "should not match if the arguments provided are not in the call history" do - @sut.is_satisfied_by("yo").should be_false + expect(@sut.is_satisfied_by("yo")).to be_falsy end end context "and we don't care about the arguments it was called with" do it "should match if it received a call to the method" do - @sut.is_satisfied_by.should be_true + expect(@sut.is_satisfied_by).to be_truthy end end end end end