summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorJerome Dalbert <jerome@rentify.com>2014-01-18 19:07:00 +0000
committerJerome Dalbert <jerome@rentify.com>2014-01-18 19:15:10 +0000
commit2e3f250d4516c92adce5511747419d7f1fe04b97 (patch)
treebdf7a0dc744a55a3b96a10131baebd996e5b9d79 /features
parentdba982403b7b894d2096ea61b89a247060eefe57 (diff)
downloadgitlab-ce-2e3f250d4516c92adce5511747419d7f1fe04b97.tar.gz
Add website url to user
Diffstat (limited to 'features')
-rw-r--r--features/profile/profile.feature4
-rw-r--r--features/steps/profile/profile.rb6
2 files changed, 6 insertions, 4 deletions
diff --git a/features/profile/profile.feature b/features/profile/profile.feature
index 6b0421a20b3..8b6ee6fd67f 100644
--- a/features/profile/profile.feature
+++ b/features/profile/profile.feature
@@ -8,8 +8,8 @@ Feature: Profile
Scenario: I edit profile
Given I visit profile page
- Then I change my contact info
- And I should see new contact info
+ Then I change my profile info
+ And I should see new profile info
Scenario: I change my password without old one
Given I visit profile password page
diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb
index 7bb4aebde28..33ae6c72998 100644
--- a/features/steps/profile/profile.rb
+++ b/features/steps/profile/profile.rb
@@ -6,18 +6,20 @@ class Profile < Spinach::FeatureSteps
page.should have_content "Profile settings"
end
- step 'I change my contact info' do
+ step 'I change my profile info' do
fill_in "user_skype", with: "testskype"
fill_in "user_linkedin", with: "testlinkedin"
fill_in "user_twitter", with: "testtwitter"
+ fill_in "user_website_url", with: "testurl"
click_button "Save changes"
@user.reload
end
- step 'I should see new contact info' do
+ step 'I should see new profile info' do
@user.skype.should == 'testskype'
@user.linkedin.should == 'testlinkedin'
@user.twitter.should == 'testtwitter'
+ @user.website_url.should == 'testurl'
end
step 'I change my avatar' do