Commit f3cf4a8b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix key remove

parent 2241d767
......@@ -33,7 +33,7 @@ describe GitlabKeys do
end
it "should receive valid cmd" do
valid_cmd = "sed '/key-741/d' /home/git/.ssh/authorized_keys"
valid_cmd = "sed -i '/key-741/d' /home/git/.ssh/authorized_keys"
@gl_keys.should_receive(:system).with(valid_cmd)
@gl_keys.send :rm_key
end
......
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