debian-mirror-gitlab/qa/spec/scenario/test/integration/github_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
501 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2021-01-03 14:25:43 +05:30
RSpec.describe QA::Scenario::Test::Integration::Github do
2020-03-13 15:44:24 +05:30
describe '#perform' do
2022-03-02 08:16:31 +05:30
let(:env) { spy('Runtime::Env', knapsack?: false, dry_run: false) }
2018-11-20 20:47:30 +05:30
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