debian-mirror-gitlab/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

2021-04-29 21:17:54 +05:30
# 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