diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-08 13:59:46 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-14 11:59:08 +0300 |
commit | 65fe4bb1ceed6bae05724f3494fb57e8b09fa616 (patch) | |
tree | 8442c94b804435e8a0ac7eb73e470862724318c4 /spec/support/stub_gitlab_calls.rb | |
parent | 00155b6c694d7d9a016b532694f5049b70e9a4db (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/stub_gitlab_calls.rb')
-rw-r--r-- | spec/support/stub_gitlab_calls.rb | 4 |
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 |