2018-09-03 10:08:49 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-09-25 03:09:30 +00:00
|
|
|
RSpec.describe QA::Scenario::Test::Integration::Github do
|
2020-02-06 21:08:48 +00:00
|
|
|
describe '#perform' do
|
2022-01-07 18:16:06 +00:00
|
|
|
let(:env) { spy('Runtime::Env', knapsack?: false, dry_run: false) }
|
2018-09-03 10:08:49 +00:00
|
|
|
|
|
|
|
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
|
2019-03-27 19:03:03 +00:00
|
|
|
subject.perform(args)
|
2018-09-03 10:08:49 +00:00
|
|
|
|
|
|
|
expect(env).to have_received(:require_github_access_token!)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|