summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-08-03 19:29:54 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-08-03 19:29:54 +0300
commit6de488259701af4b69282ad105882dba423fb666 (patch)
tree57015b8f32aac9c4785c0c4f13ef9803ed3f4e89 /features
parent3079687b93bb957cdbe857bcb49b7a1834e2004b (diff)
downloadgitlab-ce-6de488259701af4b69282ad105882dba423fb666.tar.gz
Remove duplicate coverage in spec requests. All features should be covered in cucumber
Diffstat (limited to 'features')
-rw-r--r--features/dashboard/dashboard.feature2
-rw-r--r--features/profile/profile.feature6
-rw-r--r--features/projects/source/browse_files.feature (renamed from features/projects/source/browse_files.feature.commented)0
-rw-r--r--features/projects/source/git_blame.feature10
-rw-r--r--features/step_definitions/browse_code_steps.rb10
-rw-r--r--features/step_definitions/profile_steps.rb13
6 files changed, 39 insertions, 2 deletions
diff --git a/features/dashboard/dashboard.feature b/features/dashboard/dashboard.feature
index 2d66af53b7b..a8c2205c143 100644
--- a/features/dashboard/dashboard.feature
+++ b/features/dashboard/dashboard.feature
@@ -10,7 +10,7 @@ Feature: Dashboard
Then I should see "Shop" project link
Then I should see project "Shop" activity feed
- Scenario: I should see last pish widget
+ Scenario: I should see last push widget
Then I should see last push widget
And I click "Create Merge Request" link
Then I see prefilled new Merge Request page
diff --git a/features/profile/profile.feature b/features/profile/profile.feature
index e3d71abc746..afda4b55081 100644
--- a/features/profile/profile.feature
+++ b/features/profile/profile.feature
@@ -6,6 +6,11 @@ Feature: Profile
Given I visit profile page
Then I should see my profile info
+ Scenario: I edit profile
+ Given I visit profile page
+ Then I change my contact info
+ And I should see new contact info
+
Scenario: I change my password
Given I visit profile password page
Then I change my password
@@ -15,4 +20,3 @@ Feature: Profile
Given I visit profile token page
Then I reset my token
And I should see new token
-
diff --git a/features/projects/source/browse_files.feature.commented b/features/projects/source/browse_files.feature
index 04aebc19732..04aebc19732 100644
--- a/features/projects/source/browse_files.feature.commented
+++ b/features/projects/source/browse_files.feature
diff --git a/features/projects/source/git_blame.feature b/features/projects/source/git_blame.feature
index e69de29bb2d..6aa6be47deb 100644
--- a/features/projects/source/git_blame.feature
+++ b/features/projects/source/git_blame.feature
@@ -0,0 +1,10 @@
+Feature: Browse git repo
+ Background:
+ Given I signin as a user
+ And I own project "Shop"
+ Given I visit project source page
+
+ Scenario: I blame file
+ Given I click on file from repo
+ And I click blame button
+ Then I should see git file blame
diff --git a/features/step_definitions/browse_code_steps.rb b/features/step_definitions/browse_code_steps.rb
index fc3cf56a83b..7f9001bb989 100644
--- a/features/step_definitions/browse_code_steps.rb
+++ b/features/step_definitions/browse_code_steps.rb
@@ -38,3 +38,13 @@ end
Then /^I should see raw file content$/ do
page.source.should == ValidCommit::BLOB_FILE
end
+
+Given /^I click blame button$/ do
+ click_link "blame"
+end
+
+Then /^I should see git file blame$/ do
+ page.should have_content("rubygems.org")
+ page.should have_content("Dmitriy Zaporozhets")
+ page.should have_content("bc3735004cb Moving to rails 3.2")
+end
diff --git a/features/step_definitions/profile_steps.rb b/features/step_definitions/profile_steps.rb
index 7510c5365e1..4661139c180 100644
--- a/features/step_definitions/profile_steps.rb
+++ b/features/step_definitions/profile_steps.rb
@@ -36,3 +36,16 @@ Then /^I should see new token$/ do
find("#token").value.should == @user.reload.private_token
end
+Then /^I change my contact info$/ do
+ fill_in "user_skype", :with => "testskype"
+ fill_in "user_linkedin", :with => "testlinkedin"
+ fill_in "user_twitter", :with => "testtwitter"
+ click_button "Save"
+ @user.reload
+end
+
+Then /^I should see new contact info$/ do
+ @user.skype.should == 'testskype'
+ @user.linkedin.should == 'testlinkedin'
+ @user.twitter.should == 'testtwitter'
+end