test/extra/test_piper.rb in nanoc-4.2.1 vs test/extra/test_piper.rb in nanoc-4.2.2

- old
+ new

@@ -1,11 +1,11 @@ class Nanoc::Extra::PiperTest < Nanoc::TestCase def test_basic stdout = StringIO.new stderr = StringIO.new - cmd = %w( ls -l ) + cmd = %w(ls -l) File.open('foo.txt', 'w') { |io| io.write('hi') } File.open('bar.txt', 'w') { |io| io.write('ho') } piper = Nanoc::Extra::Piper.new(stdout: stdout, stderr: stderr) @@ -19,11 +19,11 @@ def test_stdin stdout = StringIO.new stderr = StringIO.new input = 'Hello World!' - cmd = %w( cat ) + cmd = %w(cat) piper = Nanoc::Extra::Piper.new(stdout: stdout, stderr: stderr) piper.run(cmd, input) assert_equal(input, stdout.string) @@ -32,10 +32,10 @@ def test_no_such_command stdout = StringIO.new stderr = StringIO.new - cmd = %w( cat kafhawilgoiwaejagoualjdsfilofiewaguihaifeowuiga ) + cmd = %w(cat kafhawilgoiwaejagoualjdsfilofiewaguihaifeowuiga) piper = Nanoc::Extra::Piper.new(stdout: stdout, stderr: stderr) assert_raises(Nanoc::Extra::Piper::Error) do piper.run(cmd, nil) end