13 lines
304 B
Ruby
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
|