Commit 237185b5 authored by Fabio Pelosin's avatar Fabio Pelosin

[list] spec update

parent 16b4d95e
...@@ -28,23 +28,28 @@ describe "Pod::Command::List" do ...@@ -28,23 +28,28 @@ describe "Pod::Command::List" do
it "presents the known pods" do it "presents the known pods" do
list = command() list = command()
list.run list.run
output = list.output [ 'ZBarSDK',
output.should.include 'ZBarSDK' 'TouchJSON',
output.should.include 'TouchJSON' 'SDURLCache',
output.should.include 'SDURLCache' 'MagicalRecord',
output.should.include 'MagicalRecord' 'A2DynamicDelegate',
output.should.include 'A2DynamicDelegate' '75 pods were found'
output.should.include '75 pods were found' ].each {|s| list.output.should.include s }
end end
it "returns the new pods" do it "returns the new pods" do
Time.stubs(:now).returns(Time.mktime(2012,2,1)) Time.stubs(:now).returns(Time.mktime(2012,2,3))
list = command(argv('new')) list = command(argv('new'))
list.run list.run
output = list.output [ 'iCarousel',
output.should.include 'iCarousel' 'libPusher',
output.should.include 'cocoa-oauth' 'SSCheckBoxView',
output.should.include 'NLCoreData' 'KKPasscodeLock',
'SOCKit',
'FileMD5Hash',
'cocoa-oauth',
'iRate'
].each {|s| list.output.should.include s }
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