diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-10-10 14:21:28 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-10-11 15:36:05 +0200 |
commit | a4c8927007499d71a13e1a52c59a0ec36f20a6e0 (patch) | |
tree | 20b71dd0d8e0c19701cb6ad9a270ce1a0f0e18fc /spec/gitlab_keys_spec.rb | |
parent | b30d957fe2a85ee9ebb058010020e1c21d256a44 (diff) | |
download | gitlab-shell-a4c8927007499d71a13e1a52c59a0ec36f20a6e0.tar.gz |
Instrument GitLab Shell and log metrics data to a file
Diffstat (limited to 'spec/gitlab_keys_spec.rb')
-rw-r--r-- | spec/gitlab_keys_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_keys_spec.rb b/spec/gitlab_keys_spec.rb index 67f9f40..c1c3854 100644 --- a/spec/gitlab_keys_spec.rb +++ b/spec/gitlab_keys_spec.rb @@ -53,7 +53,7 @@ describe GitlabKeys do end context "without file writing" do - before { gitlab_keys.stub(:open) } + before { allow(gitlab_keys).to receive(:open) } before { create_authorized_keys_fixture } it "should log an add-key event" do @@ -106,7 +106,7 @@ describe GitlabKeys do context "without file writing" do before do - gitlab_keys.should_receive(:open).and_yield(mock(:file, puts: nil, chmod: nil)) + gitlab_keys.should_receive(:open).and_yield(double(:file, puts: nil, chmod: nil)) end it "should log an add-key event" do |