Permalink
Browse files

Update clearance syntax.

  • Loading branch information...
1 parent 78a66f6 commit fcf5c150c15441e0f80aa0862f968b43f90432a0 @cmeiklejohn cmeiklejohn committed with sferik Sep 13, 2011
@@ -4,12 +4,12 @@ Feature: API key reset
Should be able to reset it
Scenario: User sees existing key on their profile page
- Given I have signed in with "email@person.com/password"
+ Given I have signed in with "email@person.com"
And I am on my edit profile page
Then I should see my "API key"
Scenario: User resets API key
- Given I have signed in with "email@person.com/password"
+ Given I have signed in with "email@person.com"
And I am on my edit profile page
When I press "Reset my API key"
Then I should see my new "API key"
@@ -4,7 +4,7 @@ Feature: Dashboard
Should be able to see a list of updates in their feed
Background:
- Given I am signed up and confirmed as "email@person.com/password"
+ Given I am signed up as "email@person.com"
Scenario: User goes to their dashboard
Given the following rubygems exist:
@@ -27,7 +27,7 @@ Feature: Dashboard
| email: email@person.com | name: fireworm |
And I download the rubygem "fireworm" version "1.0.0" 1001 times
And I download the rubygem "sandworm" version "2.0.0" 1008 times
- When I sign in as "email@person.com/password"
+ When I sign in as "email@person.com"
And I go to the dashboard
And I should see "ffi"
And I should see "java"
@@ -4,7 +4,7 @@ Feature: Download Gems
Should be able to download some gems
Scenario: Download a gem
- Given I am signed up and confirmed as "email@person.com/password"
+ Given I am signed up as "email@person.com"
And I have a gem "sandworm" with version "1.0.0"
And I have a gem "sandworm" with version "2.0.0"
And I have an API key for "email@person.com/password"
@@ -37,7 +37,7 @@ Feature: Download Gems
And I should see "1,003 for this version"
Scenario: Download a platform gem
- Given I am signed up and confirmed as "email@person.com/password"
+ Given I am signed up as "email@person.com"
And I have a gem "crysknife" with version "1.0.0"
And I have a gem "crysknife" with version "1.0.0" and platform "java"
And I have an API key for "email@person.com/password"
@@ -61,7 +61,7 @@ Feature: Download Gems
And I should see "2 for this version"
Scenario: Download a .gem file for a platform gem
- Given I am signed up and confirmed as "email@person.com/password"
+ Given I am signed up as "email@person.com"
And I have a gem "andhapp" with version "1.1.1"
And I have a gem "andhapp" with version "1.1.0"
And I have an API key for "email@person.com/password"
@@ -4,7 +4,7 @@ Feature: Edit Profile
Should be able to edit their profile
Scenario: Edit Handle
- Given I have signed in with "john@example.com/password"
+ Given I have signed in with "john@example.com"
And my handle is "johndoe"
And I am on my edit profile page
When I fill in "Handle" with "john_doe"
@@ -16,7 +16,7 @@ Feature: Edit Profile
Given the following user exists:
| email | handle |
| janedoe@example.com | some_doe |
- And I have signed in with "johndoe@example.com/password"
+ And I have signed in with "johndoe@example.com"
And I am on my edit profile page
When I fill in "Handle" with "some_doe"
And I press "Update"
@@ -4,7 +4,7 @@ Feature: Email reset
Should be able to reset the email address associated with my account
Background:
- Given I have signed in with "email@person.com/password"
+ Given I have signed in with "email@person.com"
Scenario: User resets email address
Given I am on my edit profile page
@@ -28,12 +28,12 @@ Feature: Email reset
Scenario: User tries to sign in in after resetting email address without confirmation
When I have reset my email address to "email@newperson.com"
- And I sign in as "email@newperson.com/password"
+ And I sign in as "email@newperson.com"
Then I should see "Confirmation email will be resent."
And an email entitled "Email address confirmation" should be sent to "email@newperson.com"
Scenario: User signs in after resetting and confirming email address
When I have reset my email address to "email@newperson.com"
And I follow the confirmation link sent to "email@newperson.com"
- And I sign in as "email@newperson.com/password"
+ And I sign in as "email@newperson.com"
Then I should not see "sign in"
@@ -4,7 +4,7 @@ Feature: List gems API
Should be able to list their gems
Scenario: Gem owner user lists their gems
- Given I am signed up and confirmed as "original@owner.org/password"
+ Given I am signed up as "original@owner.org"
And I have an API key for "original@owner.org/password"
And the following version exists:
| rubygem | number |
@@ -8,6 +8,6 @@ Feature: Gravatar
Then I should not see my gravatar
Scenario: User is signed in
- Given I have signed in with "email@person.com/password"
+ Given I have signed in with "email@person.com"
When I go to the homepage
Then I should see my gravatar
@@ -15,5 +15,5 @@ Feature: Password reset with handle
Then I should be signed in
When I sign out
Then I should be signed out
- And I sign in as "email@person.com/newpassword"
+ And I sign in as "email@person.com"
Then I should be signed in
@@ -4,10 +4,10 @@ Feature: Sign in with handle
Should be able to sign in with handle
Scenario: User signs in successfully with handle
- Given I am signed up and confirmed as "email@person.com/password"
+ Given I am signed up as "email@person.com"
And my handle is "signinnow"
When I go to the sign in page
- And I sign in as "signinnow/password"
+ And I sign in as "signinnow"
Then I should see "Signed in"
And I should be signed in
When I return next time
@@ -7,7 +7,6 @@ Feature: Sign up with handle
When I go to the sign up page
And I fill in "Email" with "email@person.com"
And I fill in "Password" with "password"
- And I fill in "Confirm password" with ""
And I press "Sign up"
Then I should see error messages
@@ -16,7 +15,6 @@ Feature: Sign up with handle
And I fill in "Email" with "email@person.com"
And I fill in "Handle" with "thisusernameiswaytoolongseriouslywaytoolong"
And I fill in "Password" with "password"
- And I fill in "Confirm password" with ""
And I press "Sign up"
Then I should see error messages
@@ -25,7 +23,6 @@ Feature: Sign up with handle
And I fill in "Email" with "email@person.com"
And I fill in "Handle" with "validhandledude"
And I fill in "Password" with "password"
- And I fill in "Confirm password" with "password"
And I press "Sign up"
Then I should see "instructions for confirming"
And a confirmation message should be sent to "email@person.com"
View
@@ -16,7 +16,7 @@ Feature: Manage owners
| email: original@owner.org | name: OGem |
Scenario Outline: Gem owner user lists gem owners
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
When I list the owners of gem "OGem" as "<format>" with my API key
Then I should see "original@owner.org"
@@ -28,21 +28,21 @@ Feature: Manage owners
| yaml |
Scenario: Gem owner adds another owner
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
When I add the owner "new@owner.org" to the rubygem "OGem" with my API key
And I list the owners of gem "OGem" with my API key
Then I should see "original@owner.org"
And I should see "new@owner.org"
Scenario: Gem owner attempts to add another owner that does not exist
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
When I add the owner "other@owner.org" to the rubygem "OGem" with my API key
Then the response should contain "Owner could not be found."
Scenario: Gem owner removes an owner
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
And the following ownership exists:
| user | rubygem |
@@ -53,13 +53,13 @@ Feature: Manage owners
And I should not see "new@owner.org"
Scenario: Gem owner attempts to remove ownership from a user that is not an owner
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
When I remove the owner "new@owner.org" from the rubygem "OGem" with my API key
Then the response should contain "Owner could not be found."
Scenario: Gem owner removes himself when he is not the last owner
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
And the following ownership exists:
| user | rubygem |
@@ -68,13 +68,13 @@ Feature: Manage owners
Then the response should contain "Owner removed successfully."
Scenario: Gem owner removes himself when he is the last owner
- Given I sign in as "original@owner.org/password"
+ Given I sign in as "original@owner.org"
And I have an API key for "original@owner.org/password"
When I remove the owner "original@owner.org" from the rubygem "OGem" with my API key
Then the response should contain "Unable to remove owner."
Scenario Outline: Attempt to manage a gem without the right permission
- Given I am signed up and confirmed as "non@owner.org/password"
+ Given I am signed up as "non@owner.org"
And I have an API key for "non@owner.org/password"
When I <action> with my API key
Then the response should contain "You do not have permission to manage this gem."
View
@@ -4,7 +4,7 @@ Feature: Profile Feature
I want to see a page with all of my gems
Background:
- Given I have signed in with "jon@example.com/password"
+ Given I have signed in with "jon@example.com"
And the following version exists:
| rubygem | number |
| name: sandworm | 2.0.0 |
@@ -24,7 +24,7 @@ Feature: Profile Feature
And I should see "3 today"
Scenario: View another user's profile
- Given I have signed in with "bob@example.com/password"
+ Given I have signed in with "bob@example.com"
When I go to "jon@example.com" profile page
Then I should see "sandworm"
@@ -5,9 +5,9 @@ Feature: RubyForge legacy sign in
And automatically be given an account
Scenario: RubyForge user has never logged on to GemCutter
- Given I signed up with "email@person.com/randompw"
+ Given I signed up with "email@person.com"
And I have a RubyForge account with "email@person.com/rfpassword"
- And I sign in as "email@person.com/rfpassword"
+ And I sign in as "email@person.com"
Then I should see "Signed in"
And I should be signed in
And my GemCutter password should be "rfpassword"
@@ -16,6 +16,6 @@ Feature: RubyForge legacy sign in
Scenario: RubyForge user logs on with wrong password
Given I have a RubyForge account with "email@person.com/rfpassword"
When I go to the sign in page
- And I sign in as "email@person.com/badpassword"
+ And I sign in as "email@person.com"
Then I should see "Bad email or password"
And I should be signed out

0 comments on commit fcf5c15

Please sign in to comment.