gitlab-org--gitlab-foss/spec/lib/sidebars/projects/context_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
304 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Sidebars::Projects::Context 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