Skip to content

Commit

Permalink
Make tests green.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Jul 17, 2012
1 parent b364272 commit bc80134
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/unit/local_pod_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
it 'returns an expanded list the files to clean' do
clean_paths = @pod.clean_paths.map { |p| p.to_s.gsub(/.*Pods\/BananaLib/,'') }
clean_paths.should.include "/.git/config"
# There are some hidden files on Travis
clean_files_without_hidden = clean_paths.reject { |p| p.to_s.include?('/.') }
# * There are some hidden files on Travis
# * The submodule of the repo (libPusher) can be ignore, to reduce noise of this test
clean_files_without_hidden = clean_paths.reject { |p| p.to_s.include?('/.') || p.to_s.include?('libPusher') }
clean_files_without_hidden.should == %W[ /sub-dir /sub-dir/sub-dir-2 /sub-dir/sub-dir-2/somefile.txt ]
end

Expand Down

0 comments on commit bc80134

Please sign in to comment.