Commit 5a6c8391 authored by Kyle Fuller's avatar Kyle Fuller

[Repo remove] Improve test coverage

parent 88e5a85a
...@@ -96,6 +96,14 @@ module Pod ...@@ -96,6 +96,14 @@ module Pod
config.repos_dir = SpecHelper.tmp_repos_path config.repos_dir = SpecHelper.tmp_repos_path
end end
it "complains when a repository name is missing" do
lambda { run_command('repo', 'remove') }.should.raise CLAide::Help
end
it "complains if the repository doesn't exist" do
lambda { run_command('repo', 'remove', 'nonexistant') }.should.raise CLAide::Help
end
it "removes a spec-repo" do it "removes a spec-repo" do
upstream = SpecHelper.temporary_directory + 'upstream' upstream = SpecHelper.temporary_directory + 'upstream'
FileUtils.cp_r(test_repo_path, upstream) FileUtils.cp_r(test_repo_path, upstream)
......
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