Sha256: 82079c9711d99cf8f79a417b4c764e5f68f606eedd22a6dd70c04c30a6d70bb5

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

require 'dummy_rails_app'
require 'dump_rake'

ActiveRecord::Base.logger = Logger.new(File.join(DumpRake::RailsRoot, 'log/dump.log'))

def grab_output
  real_stdout, $stdout = $stdout, StringIO.new
  real_stderr, $stderr = $stderr, StringIO.new
  begin
    yield
    {:stdout => $stdout.string, :stderr => $stderr.string}
  ensure
    $stdout = real_stdout
    $stderr = real_stderr
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dump-1.0.5 spec/spec_helper.rb