extended user profile with social fields

This commit is contained in:
Aleksei Kvitinskii 2011-10-20 01:34:05 +03:00
parent 9ad444f02e
commit 59704f481e
10 changed files with 93 additions and 4 deletions

View file

@ -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