Skip to content

Commit

Permalink
Merge pull request #44 from hawknewton/idempotent_spec_clean
Browse files Browse the repository at this point in the history
spec_clean does not fail if it has already been run
  • Loading branch information
Ashley Penney committed Nov 13, 2013
2 parents 825993b + cec5846 commit d596899
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,9 @@ def fixtures(category)
end

fixtures("symlinks").each do |source, target|
FileUtils::rm(target)
end
site = "spec/fixtures/manifests/site.pp"
if File::exists?(site) and ! File.size?(site)
FileUtils::rm("spec/fixtures/manifests/site.pp")
FileUtils::rm_f(target)
end
FileUtils::rm_f("spec/fixtures/manifests/site.pp")
end

desc "Run spec tests in a clean fixtures directory"
Expand Down

0 comments on commit d596899

Please sign in to comment.