Commit 4b6b4a0d authored by Olivier Halligon's avatar Olivier Halligon

[Command::Cache] Typo in spec + added comments

parent 8bf8b923
......@@ -20,9 +20,11 @@ module Pod
e.message.should == '[!] 0 is invalid [1-2]'
end
it 'clean all matching pod when given a name and --all' do
it 'clean all matching pods when given a name and --all' do
run_command('cache', 'clean', '--all', 'AFNetworking')
Dir.glob(tmp_cache_path + '**/AFNetworking').select { |f| File.file?(f) }.should == []
remaining_occurences = Dir.glob(tmp_cache_path + '**/AFNetworking')
# We only clean files (so there may still be some empty dirs), so check for files only
remaining_occurences.select { |f| File.file?(f) }.should == []
end
it 'clean all pods when given --all' do
......
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