spec/features/person_profile_spec.rb in curate-0.5.6 vs spec/features/person_profile_spec.rb in curate-0.6.0

- old
+ new

@@ -10,11 +10,11 @@ before { login_as(user) } # TODO: confirm the intent of this test it 'will see a link to their profile in the nav' do visit catalog_index_path - page.should have_link("My Profile", href: person_path(account.person)) + page.should have_link("My Profile", href: user_profile_path) end it 'should see their name in the edit view' do visit catalog_index_path click_link 'My Profile' @@ -24,9 +24,10 @@ it 'should update their name and see the updated value' do visit catalog_index_path click_link 'My Profile' click_link 'Update Personal Information' + page.should have_link("Cancel", href: person_path(person)) within('form.edit_user') do fill_in("user[name]", with: 'Spider Man') fill_in("user[current_password]", with: password) click_button "Update My Account" end