summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorAsh McKenzie <ash@the-rebellion.net>2018-07-20 11:34:01 +1000
committerAsh McKenzie <ash@the-rebellion.net>2018-07-20 22:28:58 +1000
commitc92bfcefece5eea1fa30f75f7e99212c09b5792e (patch)
tree09b5c83caadd778e4173257469ade986665ce12e /spec/gitlab_shell_spec.rb
parent41396a775e13734eeb67df715744a16b622ed7b7 (diff)
downloadgitlab-shell-c92bfcefece5eea1fa30f75f7e99212c09b5792e.tar.gz
Rspec upgrade and deprecation fixesash.mckenzie/minor-tidy-up
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index eef0caf..af84b29 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -4,6 +4,7 @@ require_relative '../lib/gitlab_access_status'
describe GitlabShell do
before do
+ $logger = double('logger').as_null_object
FileUtils.mkdir_p(tmp_repos_path)
end
@@ -428,7 +429,7 @@ describe GitlabShell do
it "refuses to assign the path" do
$stderr.should_receive(:puts).with("GitLab: Invalid repository path")
- expect(subject.exec(ssh_cmd)).to be_false
+ expect(subject.exec(ssh_cmd)).to be_falsey
end
end
end