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:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-08 13:59:46 +0300
committerGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-14 11:59:08 +0300
commit65fe4bb1ceed6bae05724f3494fb57e8b09fa616 (patch)
tree8442c94b804435e8a0ac7eb73e470862724318c4 /spec/support
parent00155b6c694d7d9a016b532694f5049b70e9a4db (diff)
Improve gitlab ci commits specs (refactoring)
This minimizes usage of instance variables in this spec, and changes double quotation marks to single when string interpolation is not being used.
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/stub_gitlab_calls.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/stub_gitlab_calls.rb b/spec/support/stub_gitlab_calls.rb
index 5b3eb1bfc5f..90936183824 100644
--- a/spec/support/stub_gitlab_calls.rb
+++ b/spec/support/stub_gitlab_calls.rb
@@ -21,6 +21,10 @@ module StubGitlabCalls
allow_any_instance_of(Ci::Commit).to receive(:ci_yaml_file) { ci_yaml }
end
+ def stub_ci_service_disabled
+ allow_any_instance_of(GitlabCiService).to receive(:active).and_return(false)
+ end
+
private
def gitlab_url