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

danger_spec_helper.rb « danger « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1e84b3c13de8ad3cbac472a4b3f37bf1e087543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module DangerSpecHelper
  def new_fake_danger
    Class.new do
      attr_reader :git, :gitlab, :helper

      # rubocop:disable Gitlab/ModuleWithInstanceVariables
      def initialize(git: nil, gitlab: nil, helper: nil)
        @git = git
        @gitlab = gitlab
        @helper = helper
      end
      # rubocop:enable Gitlab/ModuleWithInstanceVariables
    end
  end
end