Is this spec supposed to pass?
it "returns a Ticket that is valid when it cannot find a TGT" do
TicketGrantingTicket.stub!(:find_by_ticket).return(nil)
TicketGrantingTicket.validate_cookie(’abc’).should be_valid
end
I would think it shouldn’t be valid, but when you add this spec for TGT, it passes.
original LH ticket
This ticket has 0 attachment(s).
Is this spec supposed to pass?
it "returns a Ticket that is valid when it cannot find a TGT" do
TicketGrantingTicket.stub!(:find_by_ticket).return(nil)
TicketGrantingTicket.validate_cookie(’abc’).should be_valid
end
I would think it shouldn’t be valid, but when you add this spec for TGT, it passes.
original LH ticket
This ticket has 0 attachment(s).