2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
describe QA::Scenario::Test::Integration::Github do
|
|
|
|
context '#perform' do
|
|
|
|
let(:env) { spy('Runtime::Env') }
|
|
|
|
|
|
|
|
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-07-07 11:18:12 +05:30
|
|
|
subject.perform(args)
|
2018-11-20 20:47:30 +05:30
|
|
|
|
|
|
|
expect(env).to have_received(:require_github_access_token!)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|