2019-01-29 23:42:50 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 11:08:50 -04:00
|
|
|
RSpec.describe 'layouts/nav/sidebar/_profile' do
|
2019-01-29 23:42:50 -05:00
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
allow(view).to receive(:current_user).and_return(user)
|
|
|
|
end
|
|
|
|
|
|
|
|
it_behaves_like 'has nav sidebar'
|
2021-03-29 11:09:30 -04:00
|
|
|
it_behaves_like 'sidebar includes snowplow attributes', 'render', 'user_side_navigation', 'user_side_navigation'
|
2019-01-29 23:42:50 -05:00
|
|
|
end
|