summaryrefslogtreecommitdiff
path: root/spec/gitlab_post_receive_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-08-14 14:54:33 -0500
committerRobert Speicher <rspeicher@gmail.com>2018-08-15 16:04:11 -0500
commitcfec435a64ec7571a8333dc754afac0a41ebc6d8 (patch)
tree7fb17b508a94bcd73deb40318f70205b100d985c /spec/gitlab_post_receive_spec.rb
parentc5c97dd39409290b02209d45b147babdcf1474b5 (diff)
downloadgitlab-shell-cfec435a64ec7571a8333dc754afac0a41ebc6d8.tar.gz
Autocorrect specs via `transpec -k its -v stub_with_hash`
Diffstat (limited to 'spec/gitlab_post_receive_spec.rb')
-rw-r--r--spec/gitlab_post_receive_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_post_receive_spec.rb b/spec/gitlab_post_receive_spec.rb
index 46e6158..7dd1828 100644
--- a/spec/gitlab_post_receive_spec.rb
+++ b/spec/gitlab_post_receive_spec.rb
@@ -31,7 +31,7 @@ describe GitlabPostReceive do
before do
$logger = double('logger').as_null_object # Global vars are bad
- GitlabConfig.any_instance.stub(repos_path: repository_path)
+ allow_any_instance_of(GitlabConfig).to receive(:repos_path).and_return(repository_path)
end
describe "#exec" do