Sha256: 067260b0b96e1c96d83e360391de5c50f2d289c61e6a36ef6496006e7cab1dbc
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
# Copyright:: (c) Autotelik Media Ltd 2015 # Author :: Tom Statter # Date :: # License:: MIT # ENV["RAILS_ENV"] ||= 'test' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each { |f| require f } # Need an active record DB to test against, so we manage own Rails sandbox DataShift::Sandbox.gen_rails_sandbox require File.join( DataShift::Sandbox.rails_sandbox_path, "config/environment.rb") require "rspec/rails" require 'factory_girl_rails' require 'database_cleaner' require File.expand_path("../../lib/datashift", __FILE__) RSpec.configure do |config| #config.use_transactional_fixtures = false config.before(:suite) do # make sure we have dir for result files FileUtils.mkdir_p(results_path()) unless File.exist?(results_path) end config.before(:each) do DataShift::Configuration.reset DataShift::Exporters::Configuration.reset DataShift::Loaders::Configuration.reset end config.include FactoryGirl::Syntax::Methods # Print the 10 slowest examples and example groups at the # end of the spec run, to help surface which specs are running # particularly slow. config.profile_examples = 10 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datashift-0.40.1 | spec/spec_helper.rb |
datashift-0.40.0 | spec/spec_helper.rb |