lib/genspec/matchers/base.rb in genspec-0.2.1 vs lib/genspec/matchers/base.rb in genspec-0.2.2

- old
+ new

@@ -101,20 +101,13 @@ init_blocks.each do |block| block.call(tempdir) end @destination_root = tempdir - stdout, stderr, stdin = $stdout, $stderr, $stdin - $stdout, $stderr, $stdin = shell.output, shell.output, shell.input - - begin - @generator.start(@args || [], { - :shell => @shell, - :destination_root => destination_root - }) - ensure - $stdout, $stderr, $stdin = stdout, stderr, stdin - end + @generator.start(@args || [], { + :shell => @shell, + :destination_root => destination_root + }) check_for_errors generated end end