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

test_helpers.rb « integrations « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7fde957316c1ee00369f3e8704ceebc94bfbf08 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module Integrations
  module TestHelpers
    def factory_for(integration)
      return :integrations_slack if integration.is_a?(Integrations::Slack)

      "#{integration.to_param}_integration".to_sym
    end
  end
end