Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions features/homepage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ Feature: Homepage
| fireworm-1.0.0 (20) |
| sandworm-2.0.0 (10) |
| sandworm-1.0.0 (5) |

Scenario: Just updated
Given I am signed up as "email@person.com"
And I have an API key for "email@person.com/password"
And I have a gem "sandworm" with version "1.0.0"
And I have a gem "sandworm" with version "2.0.0"
And I push the gem "sandworm-1.0.0.gem" with my API key
And I push the gem "sandworm-2.0.0.gem" with my API key

When I am on the homepage
Then I should see the following just updated gems:
| sandworm (2.0.0) |
| sandworm (1.0.0) |
4 changes: 4 additions & 0 deletions features/step_definitions/view_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
assert_equal table.raw.flatten, page.all("#most_downloaded li a").map(&:text)
end

Then /^I should see the following just updated gems:$/ do |table|
assert_equal table.raw.flatten, page.all("#just_updated li a").map(&:text)
end

Then /^I should see the version "([^\"]*)" featured$/ do |version_number|
assert page.has_css?("h3:contains('#{version_number}')")
end
Expand Down