Skip to content

Instantly share code, notes, and snippets.

@fabriziomachado
Created October 27, 2011 10:59
Show Gist options
  • Save fabriziomachado/1319276 to your computer and use it in GitHub Desktop.
Save fabriziomachado/1319276 to your computer and use it in GitHub Desktop.
# 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