Welcome to mirror list, hosted at ThFree Co, Russian Federation.

context_spec.rb « projects « sidebars « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bdf6439b85bec9f0ac1ac51088ffd2484010291a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Sidebars::Projects::Context, feature_category: :navigation do
  let(:project) { build(:project) }

  subject { described_class.new(current_user: nil, container: project) }

  it 'sets project attribute reader' do
    expect(subject.project).to eq(project)
  end
end