diff options
author | Aleksei Kvitinskii <aleksei.kvitinskii@active.by> | 2011-10-20 02:34:05 +0400 |
---|---|---|
committer | Aleksei Kvitinskii <aleksei.kvitinskii@active.by> | 2011-10-20 02:34:05 +0400 |
commit | 59704f481e742710fff32c733047eb84478e505e (patch) | |
tree | d837909ea9b6e1387c71de5ef2c2ae568323f28c /spec/requests/profile_spec.rb | |
parent | 9ad444f02efbeb30365cdf7f23f9b2f846b45a03 (diff) |
extended user profile with social fields
Diffstat (limited to 'spec/requests/profile_spec.rb')
-rw-r--r-- | spec/requests/profile_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/requests/profile_spec.rb b/spec/requests/profile_spec.rb index 07fdc4abdc6..5838f63b40b 100644 --- a/spec/requests/profile_spec.rb +++ b/spec/requests/profile_spec.rb @@ -14,6 +14,22 @@ describe "Profile" do it { page.should have_content(@user.email) } end + describe "Profile update" do + before do + visit profile_path + fill_in "user_skype", :with => "testskype" + fill_in "user_linkedin", :with => "testlinkedin" + fill_in "user_twitter", :with => "testtwitter" + click_button "Save" + @user.reload + end + + it { @user.skype.should == 'testskype' } + it { @user.linkedin.should == 'testlinkedin' } + it { @user.twitter.should == 'testtwitter' } + end + + describe "Password update" do before do visit profile_password_path |