extended user profile with social fields
This commit is contained in:
parent
9ad444f02e
commit
59704f481e
10 changed files with 93 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue