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

26 lines
780 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
describe QA::Scenario::Test::Integration::Mattermost do
2020-03-09 13:42:32 +05:30
describe '#perform' do
2018-11-20 20:47:30 +05:30
it_behaves_like 'a QA scenario class' do
let(:args) { %w[gitlab_address mattermost_address] }
2019-07-07 11:18:12 +05:30
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] }
2018-11-20 20:47:30 +05:30
let(:tags) { [:mattermost] }
let(:options) { ['path1']}
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(attributes).to have_received(:define)
2019-07-07 11:18:12 +05:30
.with(:mattermost_address, 'http://mattermost_address')
2018-11-20 20:47:30 +05:30
end
end
end
end