Commit 83432988 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix tests and version up to 1.4.0

parent 5eac1f8f
v1.4.0
- Regex used in rm-key command was too lax
v1.3.0 v1.3.0
- Fork-project command - Fork-project command
- Custom redis configuration - Custom redis configuration
......
...@@ -24,7 +24,7 @@ describe GitlabKeys do ...@@ -24,7 +24,7 @@ describe GitlabKeys do
let(:gitlab_keys) { build_gitlab_keys('rm-key', 'key-741', 'ssh-rsa AAAAB3NzaDAxx2E') } let(:gitlab_keys) { build_gitlab_keys('rm-key', 'key-741', 'ssh-rsa AAAAB3NzaDAxx2E') }
it "should receive valid cmd" do it "should receive valid cmd" do
valid_cmd = "sed -i '/shell key-741/d' #{GitlabConfig.new.auth_file}" valid_cmd = "sed -i '/shell key-741\"/d' #{GitlabConfig.new.auth_file}"
gitlab_keys.should_receive(:system).with(valid_cmd) gitlab_keys.should_receive(:system).with(valid_cmd)
gitlab_keys.send :rm_key gitlab_keys.send :rm_key
end 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