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

stub_configuration.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ad86abdbb413a6758da2805b270624541cdfbdc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module StubConfiguration
  def stub_application_setting(messages)
    allow(Gitlab::CurrentSettings.current_application_settings).
      to receive_messages(messages)
  end

  def stub_config_setting(messages)
    allow(Gitlab.config.gitlab).to receive_messages(messages)
  end

  def stub_gravatar_setting(messages)
    allow(Gitlab.config.gravatar).to receive_messages(messages)
  end
end