add cuke to test that a (b)locked user cannot log in

pull/267/head
Philipp Tessenow 11 years ago
parent 40bddee990
commit 278aeb74ad
  1. 10
      features/session/user_session.feature

@ -47,3 +47,13 @@ Feature: User session
And I wait for "4" minutes
And I go to the home page
Then I should be logged in as "bob"
Scenario: A blocked user cannot log in
Given there is 1 user with the following:
| login | blocked_user |
| password | iamblocked |
| password_confirmation | iamblocked |
And the user "blocked_user" is locked
When I login as blocked_user with password iamblocked
Then there should be a flash error message
And the flash message should contain "Invalid user or password"

Loading…
Cancel
Save