You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I found this too and this made that Passenger restart the app every few seconds because sometimes a ticket_result.username can't be delegate beacuse the ticket is nil, but the ticket result is valid.
A quick fix I made was add in TicketResult#valid? :
def valid?
ticket && !invalid?
end
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).
The text was updated successfully, but these errors were encountered: