Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/integrations/irker_spec.rb')
-rw-r--r--spec/models/integrations/irker_spec.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/models/integrations/irker_spec.rb b/spec/models/integrations/irker_spec.rb
index e98b8b54e03..2a733e67a3c 100644
--- a/spec/models/integrations/irker_spec.rb
+++ b/spec/models/integrations/irker_spec.rb
@@ -5,7 +5,7 @@ require 'socket'
require 'timeout'
require 'json'
-RSpec.describe Integrations::Irker do
+RSpec.describe Integrations::Irker, feature_category: :integrations do
describe 'Validations' do
context 'when integration is active' do
before do
@@ -30,10 +30,7 @@ RSpec.describe Integrations::Irker do
let(:irker) { described_class.new }
let(:irker_server) { TCPServer.new('localhost', 0) }
- let(:sample_data) do
- Gitlab::DataBuilder::Push.build_sample(project, user)
- end
-
+ let(:sample_data) { Gitlab::DataBuilder::Push.build_sample(project, user) }
let(:recipients) { '#commits irc://test.net/#test ftp://bad' }
let(:colorize_messages) { '1' }
@@ -58,7 +55,7 @@ RSpec.describe Integrations::Irker do
it 'sends valid JSON messages to an Irker listener', :sidekiq_might_not_need_inline do
expect(Integrations::IrkerWorker).to receive(:perform_async)
- .with(project.id, irker.channels, colorize_messages, sample_data, irker.settings)
+ .with(project.id, irker.channels, colorize_messages, sample_data.deep_stringify_keys, irker.settings)
.and_call_original
irker.execute(sample_data)