debian-mirror-gitlab/spec/features/profiles/user_visits_profile_spec.rb

25 lines
489 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
require 'spec_helper'
describe 'User visits their profile' do
let(:user) { create(:user) }
before do
sign_in(user)
visit(profile_path)
end
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