test/test_gem.rb in nanoc-3.4.3 vs test/test_gem.rb in nanoc-3.5.0b1
- old
+ new
@@ -11,10 +11,10 @@
def test_build
require 'systemu'
# Require clean environment
- assert_empty Dir['nanoc-*.gem'], "Ensure no nanoc-*.gem files exist"
+ Dir['nanoc-*.gem'].each { |f| FileUtils.rm(f) }
# Build
files_before = Set.new Dir['**/*']
stdout = ''
stderr = ''