26 lines
787 B
Ruby
26 lines
787 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe QA::Scenario::Test::Integration::Mattermost do
|
|
describe '#perform' do
|
|
it_behaves_like 'a QA scenario class' do
|
|
let(:args) { %w[gitlab_address mattermost_address] }
|
|
let(:args) do
|
|
{
|
|
gitlab_address: 'http://gitlab_address',
|
|
mattermost_address: 'http://mattermost_address'
|
|
}
|
|
end
|
|
|
|
let(:named_options) { %w[--address http://gitlab_address --mattermost-address http://mattermost_address] }
|
|
let(:tags) { [:mattermost] }
|
|
let(:options) { ['path1']}
|
|
|
|
it 'requires a GitHub access token' do
|
|
subject.perform(args)
|
|
|
|
expect(attributes).to have_received(:define)
|
|
.with(:mattermost_address, 'http://mattermost_address')
|
|
end
|
|
end
|
|
end
|
|
end
|