From d12d210fd6a6cd7fe9f397703fc752c562b68b92 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 1 Aug 2016 17:52:05 +0200 Subject: Manage authorized_keys permissions continuously 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. --- spec/gitlab_keys_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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 -- cgit v1.2.1