test/test_gem.rb in nanoc-3.7.4 vs test/test_gem.rb in nanoc-3.7.5

- old
+ new

@@ -1,9 +1,8 @@ # encoding: utf-8 class Nanoc::GemTest < Nanoc::TestCase - def setup super FileUtils.cd(@orig_wd) end @@ -13,11 +12,11 @@ # Build files_before = Set.new Dir['**/*'] stdout = StringIO.new stderr = StringIO.new - piper = Nanoc::Extra::Piper.new(:stdout => stdout, :stderr => stderr) + piper = Nanoc::Extra::Piper.new(stdout: stdout, stderr: stderr) piper.run(%w( gem build nanoc.gemspec ), nil) files_after = Set.new Dir['**/*'] # Check new files diff = files_after - files_before @@ -28,7 +27,6 @@ assert_match(/Successfully built RubyGem\s+Name: nanoc\s+Version: .*\s+File: nanoc-.*\.gem\s+/, stdout.string) assert_equal '', stderr.string ensure Dir['nanoc-*.gem'].each { |f| FileUtils.rm(f) } end - end