2017-09-12 22:50:18 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'User visits the profile account page' do
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit(profile_account_path)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows correct menu item' do
|
2017-09-16 10:09:58 +00:00
|
|
|
expect(page).to have_active_navigation('Account')
|
2017-09-12 22:50:18 +00:00
|
|
|
end
|
|
|
|
end
|