Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No duplication in just updated #389

Merged
merged 6 commits into from
Mar 23, 2012
Merged
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
16 changes: 16 additions & 0 deletions features/homepage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,19 @@ 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 have a gem "fireworm" with version "1.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
And I push the gem "fireworm-1.0.0.gem" with my API key


When I am on the homepage
Then I should see the following just updated gems:
| fireworm (1.0.0) |
| sandworm (2.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