Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modify contributions feature

  • Loading branch information...
commit 1cb94654f9469e46ee5695618c342e84dcbe68c1 1 parent dd991d8
@foysavas authored
View
16 features/contributor_badge.feature
@@ -1,16 +0,0 @@
-Feature:
- So that visitor can confirm contributors to major projects
- The profiles of users of the site
- Should automatically display contributor badges
-
- Scenario: I'm a contributor
- Given I am authenticated
- And I am a contributor to "Merb"
- When I look at my profile
- Then I should be shown as a "Merb" contributor
-
- Scenario: I'm not a contributor
- Given I am authenticated
- And I am not a contributor to "Rails"
- When I look at my profile
- Then I should not be shown as a "Rails" contributor
View
17 features/steps/contributor_steps.rb
@@ -1,17 +0,0 @@
-Given /^I am a contributor to "(.*)"$/ do |project_name|
- @project = Project.create(:name => project_name)
- @contribution = Contribution.create(:user => @user, :project => @project)
-end
-
-Given /^I am not a contributor to "(.*)"$/ do |project_name|
-end
-
-Then /^I should be shown as a "(.*)" contributor$/ do |project_name|
- response.body.to_s.should =~ /Contributor to #{project_name}/m
-end
-
-Then /^I should not be shown as a "(.*)" contributor$/ do |project_name|
- response.body.to_s.should_not =~ /Contributor to #{project_name}/m
-end
-
-
View
2  features/steps/user_steps.rb
@@ -15,7 +15,7 @@
10.times { User.gen }
end
-When "I look at my profile" do
+When "I look at the user's profile" do
visit resource(@user)
end
Please sign in to comment.
Something went wrong with that request. Please try again.