Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (55 sloc) 2.079 kb
c7b7089 user profile page is rails3 ready
Ryan R. Smith authored
1 Feature: Profile Feature
2 In order to show off all my gems and such
3 As a user
4 I want to see a page with all of my gems
5
de467a8 Nick Quaranto Updating profile features to deal with HTTPS changes
qrush authored
6 Background:
fcf5c15 Christopher Meiklejohn Update clearance syntax.
cmeiklejohn authored
7 Given I have signed in with "jon@example.com"
a2ea075 Nick Rivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
8 And the following version exists:
9 | rubygem | number |
10 | name: sandworm | 2.0.0 |
11 And the following ownership exists:
12 | rubygem | user |
13 | name: sandworm | email: jon@example.com |
de467a8 Nick Quaranto Updating profile features to deal with HTTPS changes
qrush authored
14
a2ea075 Nick Rivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
15 Scenario: Show profile
c7b7089 user profile page is rails3 ready
Ryan R. Smith authored
16 When I am on "jon@example.com" profile page
17 Then I should see "sandworm"
7dbd005 Nick Rivadeneira tabs, get out of here
nickrivadeneira authored
18 And I should not see "jon@example.com"
c7b7089 user profile page is rails3 ready
Ryan R. Smith authored
19
a2ea075 Nick Rivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
20 Scenario: Show downloads for my gems in my profile
21 Given I download the rubygem "sandworm" version "2.0.0" 3 times
c7b7089 user profile page is rails3 ready
Ryan R. Smith authored
22 When I am on "jon@example.com" profile page
23 Then I should see "sandworm"
24 And I should see "3 today"
25
a2ea075 Nick Rivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
26 Scenario: View another user's profile
fcf5c15 Christopher Meiklejohn Update clearance syntax.
cmeiklejohn authored
27 Given I have signed in with "bob@example.com"
c7b7089 user profile page is rails3 ready
Ryan R. Smith authored
28 When I go to "jon@example.com" profile page
29 Then I should see "sandworm"
bf1c15e Gabriel Horner Showing extra rubygems on profiles#show
cldwalker authored
30
31 Scenario: Show other gems in my profile
a2ea075 Nick Rivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
32 Given the following rubygems exist for "jon@example.com":
bf1c15e Gabriel Horner Showing extra rubygems on profiles#show
cldwalker authored
33 | name | downloads |
34 | the_trees | 11 |
35 | tom_sawyer | 10 |
36 | red_barchetta | 9 |
37 | yyz | 8 |
38 | limelight | 7 |
39 | the_camera_eye | 6 |
40 | witch_hunt | 5 |
41 | vital_signs | 4 |
42 | spirit_of_radio | 3 |
43 | freewill | 2 |
44 | subdivisions | 1 |
45 | high_water | 0 |
46 When I am on "jon@example.com" profile page
47 Then I should see download graphs for the following rubygems:
48 | the_trees |
49 | tom_sawyer |
50 | red_barchetta |
51 | yyz |
52 | limelight |
53 | the_camera_eye |
54 | witch_hunt |
55 | vital_signs |
56 | spirit_of_radio |
57 | freewill |
58 And I should not see download graphs for the following rubygems:
59 | subdivisions |
60 | high_water |
Something went wrong with that request. Please try again.