Sha256: 6ed705ab51d6b28f3b60d7e15b53b9af953d1d1f0225ac8b5c6ab6e518845e90
Contents?: true
Size: 314 Bytes
Versions: 5
Compression:
Stored size: 314 Bytes
Contents
ENV['RAILS_ENV'] ||= 'test' require 'dummy_rails_app' 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dump-1.2.0 | spec/spec_helper.rb |
dump-1.1.0 | spec/spec_helper.rb |
dump-1.0.8 | spec/spec_helper.rb |
dump-1.0.7 | spec/spec_helper.rb |
dump-1.0.6 | spec/spec_helper.rb |