debian-mirror-gitlab/spec/lib/sidebars/projects/context_spec.rb
2021-06-08 01:23:25 +05:30

13 lines
304 B
Ruby

# 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