summaryrefslogtreecommitdiff
path: root/spec/gitlab_keys_spec.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-08-01 17:52:05 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-08-01 17:52:05 +0200
commitd12d210fd6a6cd7fe9f397703fc752c562b68b92 (patch)
treefae18b313f7efbc83682f2f5bdadf4e18ce04f86 /spec/gitlab_keys_spec.rb
parentc3cfebcf1cad21434bd90d4d3bb33824c4644eb5 (diff)
downloadgitlab-shell-keys-chmod.tar.gz
Manage authorized_keys permissions continuouslykeys-chmod
We can lazily create authorized_keys and set its permissions. This adds negligible overhead and it allows us to remove a setup step from GitLab both on source and in omnibus-gitlab.
Diffstat (limited to 'spec/gitlab_keys_spec.rb')
-rw-r--r--spec/gitlab_keys_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_keys_spec.rb b/spec/gitlab_keys_spec.rb
index ed2fd58..5afa467 100644
--- a/spec/gitlab_keys_spec.rb
+++ b/spec/gitlab_keys_spec.rb
@@ -80,7 +80,7 @@ describe GitlabKeys do
context "without file writing" do
before do
- gitlab_keys.should_receive(:open).and_yield(mock(:file, puts: nil))
+ gitlab_keys.should_receive(:open).and_yield(mock(:file, puts: nil, chmod: nil))
end
it "should log an add-key event" do