From 3d4c40a014e045d68ac80b6ebe2a4e498805a261 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Wed, 7 Feb 2018 21:45:03 +0000 Subject: Replace $.ajax in profile.js with axios --- spec/features/profiles/user_visits_profile_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec/features/profiles') diff --git a/spec/features/profiles/user_visits_profile_spec.rb b/spec/features/profiles/user_visits_profile_spec.rb index 6601d3039ed..a5d80439143 100644 --- a/spec/features/profiles/user_visits_profile_spec.rb +++ b/spec/features/profiles/user_visits_profile_spec.rb @@ -12,4 +12,13 @@ describe 'User visits their profile' do it 'shows correct menu item' do expect(page).to have_active_navigation('Profile') end + + describe 'profile settings', :js do + it 'saves updates' do + fill_in 'user_bio', with: 'bio' + click_button 'Update profile settings' + + expect(page).to have_content('Profile was successfully updated') + end + end end -- cgit v1.2.3