BigW Consortium Gitlab

ci_access_spec.rb 411 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe Gitlab::CiAccess do
4
  let(:access) { described_class.new }
5 6 7 8 9 10 11 12 13 14 15

  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