Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ceb002138c
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (32 sloc) 1.254 kb
Feature: List gems API
In order to see all the gems I work on
A gem owner
Should be able to list their gems
Scenario: Anonymous user lists gems for owner
Given the following user exists:
| email | handle |
| user@example.com | myhandle |
And the following version exists:
| rubygem | number |
| name: AGem | 1.0.0 |
And the following ownership exists:
| rubygem | user |
| name: AGem | email: user@example.com |
| name: BGem | |
When I list the gems for owner "myhandle"
Then I should see "AGem"
And I should not see "BGem"
Scenario: Anonymous user lists gems for unknown user
When I list the gems for owner "nobody"
Then I should see "Owner could not be found."
Scenario: Gem owner user lists their gems
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 |
| name: MyGem | 1.0.0 |
And the following ownership exists:
| rubygem | user |
| name: MyGem | email: original@owner.org |
When I list the gems with my API key
Then I should see "MyGem"
Jump to Line
Something went wrong with that request. Please try again.