Then I should be logged in

Assert that somebody is, or nobody is, logged in. The step opens the login page (loginPath, /login): the app sends a signed-in account away from it, and shows its form to a visitor.

Examples

Then I should be logged in
Then I should not be logged in
Then we should be logged in
And we should not be logged in
But I should not be logged in

Pattern

Then(/^(I |we )*should( not)* be logged in$/, …)

Part of @webship-js/codeigniter-steps (github.com/webship/codeigniter-steps), a step pack for Webship-js 2.0.x.