2019-07-25 05:24:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-12 22:50:18 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 18:09:01 +00:00
|
|
|
RSpec.describe 'User visits the profile account page' do
|
2017-09-12 22:50:18 +00:00
|
|
|
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
|