summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci_access_spec.rb
blob: 75b90e76083bb95c2a514b5b32c31055a010e1c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe Gitlab::CiAccess do
  let(:access) { described_class.new }

  describe '#can_do_action?' do
    context 'when action is :build_download_code' do
      it { expect(access.can_do_action?(:build_download_code)).to be_truthy }
    end

    context 'when action is not :build_download_code' do
      it { expect(access.can_do_action?(:download_code)).to be_falsey }
    end
  end
end