Commit 8402c1bc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Create keys fixtures in test

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 324fa5ce
...@@ -28,6 +28,7 @@ describe GitlabKeys do ...@@ -28,6 +28,7 @@ describe GitlabKeys do
context "without file writing" do context "without file writing" do
before { gitlab_keys.stub(:open) } before { gitlab_keys.stub(:open) }
before { create_authorized_keys_fixture }
it "should log an add-key event" do it "should log an add-key event" do
$logger.should_receive(:info).with('Adding key key-741 => "ssh-rsa AAAAB3NzaDAxx2E"') $logger.should_receive(:info).with('Adding key key-741 => "ssh-rsa AAAAB3NzaDAxx2E"')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment