Sha256: 32eb9f298be2f87f7003cccc3bca820b94a5aea80656a9b3b520052d246c1105
Contents?: true
Size: 933 Bytes
Versions: 3
Compression:
Stored size: 933 Bytes
Contents
begin require File.join(File.dirname(__FILE__), 'dummy-3.1.3/spec/spec_helper') rescue LoadError => e abort e end $:.unshift '../lib/dump_rake' require 'dump_rake' RSpec.configure do |config| config.use_transactional_fixtures = false config.use_instantiated_fixtures = false config.fixture_path = DumpRake::RailsRoot + '/spec/fixtures/' end PLUGIN_SPEC_DIR = File.expand_path(File.dirname(__FILE__)) unless defined? PLUGIN_SPEC_DIR ActiveRecord::Base.logger = Logger.new(File.join(DumpRake::RailsRoot, 'log/dump.log')) DUMMY_SCHEMA_PATH = File.join(PLUGIN_SPEC_DIR, "db", "schema.rb") unless defined? DUMMY_SCHEMA_PATH class Chicken < ActiveRecord::Base end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dump-1.0.2 | spec/spec_helper.rb |
dump-1.0.1 | spec/spec_helper.rb |
dump-1.0.0 | spec/spec_helper.rb |