Created
October 27, 2011 10:59
-
-
Save fabriziomachado/1319276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# features/auth_twitter.feature | |
Feature: Authorization on Twitter | |
In order to use application administration | |
As a user of system | |
I need to be able of authetication with my twitter account | |
@javascript | |
Scenario: Not Authorizing account with twitter | |
Given I am on "session/twitter" | |
And I should see "Sau Online" | |
And I should see "twitter" | |
And I press "deny" | |
And I should see "Autorizar Sau Online a usar sua conta?" | |
When I follow "Cancelar, e retornar ao aplicativo" | |
Then I should see "O Twitter não pode autenticar este usuário" | |
@javascript | |
Scenario: Authorizing account with twitter | |
Given I am on "session/twitter" | |
And I should see "Sau Online" | |
And I should see "twitter" | |
When I fill in "username_or_email" with "fabriziocolombo" | |
And I fill in "password" with "******" | |
And I press "allow" | |
Then I should see "Fabrizio, está logado com sua conta do Twitter!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment