debian-mirror-gitlab/spec/views/layouts/nav/sidebar/_profile.html.haml_spec.rb
2021-04-29 21:17:54 +05:30

14 lines
368 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'layouts/nav/sidebar/_profile' do
let(:user) { create(:user) }
before do
allow(view).to receive(:current_user).and_return(user)
end
it_behaves_like 'has nav sidebar'
it_behaves_like 'sidebar includes snowplow attributes', 'render', 'user_side_navigation', 'user_side_navigation'
end