Sha256: af7d8bd2a679a6188cb8ac3c5f8ca1435ceb5e65dc3994418a80b6fc33987831

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

module CommandRunner
  attr_reader :output

  def system(command)
    IO.popen("#{command} 2>&1") { |io| @output = io.read.chomp }
    assert $?.success?, @output
    @output
  end
end

Shoe::TestCase.send(:include, CommandRunner)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoe-0.8.0 test/support/command_runner.rb
shoe-0.7.1 test/support/command_runner.rb
shoe-0.7.0 test/support/command_runner.rb