Commit 81c1043d authored by Fabio Pelosin's avatar Fabio Pelosin

[Spec#lint] Fix.

parent 1fd90d26
...@@ -80,7 +80,7 @@ module Pod ...@@ -80,7 +80,7 @@ module Pod
else else
raise Informative, count == 1 ? "The spec did not pass validation." : "#{invalid_count} out of #{count} specs failed validation." raise Informative, count == 1 ? "The spec did not pass validation." : "#{invalid_count} out of #{count} specs failed validation."
end end
podspecs_tmp_dir.rmtree if tmp_dir.exist? podspecs_tmp_dir.rmtree if podspecs_tmp_dir.exist?
end end
private private
......
...@@ -115,8 +115,16 @@ describe "Pod::Command::Spec#lint" do ...@@ -115,8 +115,16 @@ describe "Pod::Command::Spec#lint" do
it "lints the current working directory" do it "lints the current working directory" do
Dir.chdir(fixture('spec-repos') + 'master/JSONKit/1.4/') do Dir.chdir(fixture('spec-repos') + 'master/JSONKit/1.4/') do
output = command('spec', 'lint', '--quick', '--only-errors').run cmd = command('spec', 'lint', '--quick', '--only-errors')
output.should.include "passed validation" cmd.run
cmd.output.should.include "passed validation"
end
end
it "lints a remote podspec" do
Dir.chdir(fixture('spec-repos') + 'master/JSONKit/1.4/') do
cmd = command('spec', 'lint', '--quick', '--only-errors', '--silent', 'https://github.com/CocoaPods/Specs/raw/master/A2DynamicDelegate/2.0.1/A2DynamicDelegate.podspec')
VCR.use_cassette('linter', :record => :new_episodes) { lambda { cmd.run }.should.not.raise }
end end
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