Commit ca8f511f authored by Stefan Damm's avatar Stefan Damm

Added tests for list --pod-versions

parent db625911
...@@ -28,6 +28,18 @@ module Pod ...@@ -28,6 +28,18 @@ module Pod
out.should.include('BananaLib') out.should.include('BananaLib')
out.should.not.include('JSONKit') out.should.not.include('JSONKit')
end end
it "presents the known pods with versions when using --pod-versions" do
sets = SourcesManager.all_sets
jsonkit_set = sets.find { |s| s.name == 'JSONKit' }
out = run_command('list','--pod-versions')
[ /BananaLib 1.0/,
/JSONKit #{jsonkit_set.versions.first}/,
/\d+ pods were found/
].each { |regex| out.should =~ regex }
end
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