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

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

27 lines
787 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::Mattermost do
2020-03-13 15:44:24 +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
2020-10-24 23:57:45 +05:30
2019-07-07 11:18:12 +05:30
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