spec/castronaut/models/proxy_ticket_spec.rb in relevance-castronaut-0.6.1 vs spec/castronaut/models/proxy_ticket_spec.rb in relevance-castronaut-0.7.4

- old
+ new

@@ -14,10 +14,10 @@ end describe "validating ticket" do it "validates the service and ticket using the service ticket validator" do - ServiceTicket.should_receive(:validate_ticket).with('service', 'ticket', true).and_return(stub_everything(:invalid? => true)) + ServiceTicket.should_receive(:validate_ticket).with('service', 'ticket', true).and_return(stub(:invalid? => true).as_null_object) ProxyTicket.validate_ticket('service', 'ticket') end describe "when the service ticket result is invalid" do