Commit 412e8bde authored by Eloy Durán's avatar Eloy Durán

Make specs green.

parent e85b6236
......@@ -15,7 +15,7 @@ module Pod
end
it "requires a spec-repo name" do
lambda { command('push').validate! }.should.raise Command::Help
lambda { command('push').validate! }.should.raise CLAide::Help
end
it "complains if it can't find the repo" do
......
......@@ -15,10 +15,10 @@ module Pod
end
it "complains for wrong parameters" do
lambda { run_command('search') }.should.raise Command::Help
lambda { run_command('search', 'too', 'many') }.should.raise Command::Help
lambda { run_command('search', 'too', '--wrong') }.should.raise Command::Help
lambda { run_command('search', '--wrong') }.should.raise Command::Help
lambda { run_command('search') }.should.raise CLAide::Help
lambda { run_command('search', 'too', 'many') }.should.raise CLAide::Help
lambda { run_command('search', 'too', '--wrong') }.should.raise CLAide::Help
lambda { run_command('search', '--wrong') }.should.raise CLAide::Help
end
it "presents the search results" do
......
......@@ -14,8 +14,8 @@ module Pod
end
it "complains for wrong parameters" do
lambda { run_command('setup', 'wrong') }.should.raise Command::Help
lambda { run_command('setup', '--wrong') }.should.raise Command::Help
lambda { run_command('setup', 'wrong') }.should.raise CLAide::Help
lambda { run_command('setup', '--wrong') }.should.raise CLAide::Help
end
it "returns the read only URL of the `master' spec-repo" do
......
......@@ -5,12 +5,12 @@ module Pod
extend SpecHelper::TemporaryDirectory
it "complains for wrong parameters" do
lambda { run_command('spec') }.should.raise Command::Help
lambda { run_command('spec', 'create') }.should.raise Command::Help
lambda { run_command('spec', '--create') }.should.raise Command::Help
lambda { run_command('spec', 'NAME') }.should.raise Command::Help
lambda { run_command('spec', 'createa') }.should.raise Command::Help
lambda { run_command('lint', 'agument1', '2') }.should.raise Command::Help
lambda { run_command('spec') }.should.raise CLAide::Help
lambda { run_command('spec', 'create') }.should.raise CLAide::Help
lambda { run_command('spec', '--create') }.should.raise CLAide::Help
lambda { run_command('spec', 'NAME') }.should.raise CLAide::Help
lambda { run_command('spec', 'createa') }.should.raise CLAide::Help
lambda { run_command('lint', 'agument1', '2') }.should.raise CLAide::Help
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