Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (44 sloc) 1.736 kb
53a798d Output platform in Version on dashboard
John Pignata authored
1 Feature: Dashboard
d7d419b @nhocki Removing double-single-quote
nhocki authored
2 In order to see the status of gems to which I've subscribed
53a798d Output platform in Version on dashboard
John Pignata authored
3 A user
4 Should be able to see a list of updates in their feed
5
a2ea075 @nickrivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
6 Background:
fcf5c15 @cmeiklejohn Update clearance syntax.
cmeiklejohn authored
7 Given I am signed up as "email@person.com"
a2ea075 @nickrivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
8
9 Scenario: User goes to their dashboard
10 Given the following rubygems exist:
11 | name |
12 | ffi |
13 | sandworm |
14 | fireworm |
15 And the following versions exist:
16 | rubygem | number | platform |
17 | name: sandworm | 2.0.0 | ruby |
18 | name: ffi | 1.0.0 | java |
19 | name: ffi | 1.0.0 | x86-mswin32 |
20 | name: fireworm | 1.0.0 | ruby |
21 And the following subscriptions exist:
22 | user | rubygem |
23 | email: email@person.com | name: ffi |
24 | email: email@person.com | name: sandworm |
25 And the following ownerships exist:
26 | user | rubygem |
27 | email: email@person.com | name: fireworm |
75e72c4 @nhocki Testing number_with_delimiter in the dashboard and the rubygems partial
nhocki authored
28 And I download the rubygem "fireworm" version "1.0.0" 1001 times
29 And I download the rubygem "sandworm" version "2.0.0" 1008 times
fcf5c15 @cmeiklejohn Update clearance syntax.
cmeiklejohn authored
30 When I sign in as "email@person.com"
53a798d Output platform in Version on dashboard
John Pignata authored
31 And I go to the dashboard
32 And I should see "ffi"
33 And I should see "java"
75e72c4 @nhocki Testing number_with_delimiter in the dashboard and the rubygems partial
nhocki authored
34 And I should see "x86-mswin32"
35 And I should see "1,001 downloads"
36 And I should see "1,008 downloads"
a2ea075 @nickrivadeneira Use factory girl step definitions, revamp/rework a lot of features
nickrivadeneira authored
37
38 Scenario: Yanked gem is hidden from listing
39 Given the following versions exist:
40 | rubygem | number | indexed |
41 | name: RGem | 1.2.2 | true |
42 | name: RGem | 1.2.3 | false |
43 When I go to the dashboard
44 And I follow "RGem"
45 Then I should not see "yanked"
46 And I should see "1.2.2"
8c032c9 @cmeiklejohn show an all versions link if there's yanked versions. closes #354
cmeiklejohn authored
47 And I should see "Show all versions (2 total)"
Something went wrong with that request. Please try again.