debian-mirror-gitlab/qa/spec/scenario/test/integration/github_spec.rb
2021-01-03 14:25:43 +05:30

21 lines
467 B
Ruby

# frozen_string_literal: true
RSpec.describe QA::Scenario::Test::Integration::Github do
describe '#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
subject.perform(args)
expect(env).to have_received(:require_github_access_token!)
end
end
end
end