summaryrefslogtreecommitdiff
path: root/qa/spec/scenario/test/integration/github_spec.rb
blob: 4ad42b4f5ccf839bac37270affa77735ccb436f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

RSpec.describe QA::Scenario::Test::Integration::Github do
  describe '#perform' do
    let(:env) { spy('Runtime::Env', knapsack?: false, dry_run: false) }

    before do
      stub_const('QA::Runtime::Env', env)
    end

    it_behaves_like 'a QA scenario class' do
      let(:tags) { [:github] }

      it 'requires a GitHub access token' do
        subject.perform(args)

        expect(env).to have_received(:require_github_access_token!)
      end
    end
  end
end