Sha256: 2348240538d939e05d75afe71a95c3874bcb52fb42ca8192c6f4f458c23094b4

Contents?: true

Size: 919 Bytes

Versions: 18

Compression:

Stored size: 919 Bytes

Contents

require 'simplecov'
if ENV['COVERAGE']
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
else
  SimpleCov.start
end
require 'pry'
require 'bundler/setup'
require 'combustion'

Combustion.initialize! :all

require 'rspec/rails'
require 'scorpion'
require 'scorpion/rspec'

root_path = File.expand_path( "../..", __FILE__ )

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[ File.join( root_path, "spec/support/**/*.rb" ) ].each { |f| require f }

RSpec.configure do |config|

  config.order = "random"

  config.filter_run focus: true
  config.filter_run_excluding :broken => true
  config.run_all_when_everything_filtered = true

  config.before(:each)  { GC.disable }
  config.after(:each)   { GC.enable }

  config.before( :each, type: :model ) do
    [ Todo, Author ].each do |model|
      model.destroy_all
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
scorpion-ioc-0.5.18 spec/spec_helper.rb
scorpion-ioc-0.5.17 spec/spec_helper.rb
scorpion-ioc-0.5.16 spec/spec_helper.rb
scorpion-ioc-0.5.15 spec/spec_helper.rb
scorpion-ioc-0.5.14 spec/spec_helper.rb
scorpion-ioc-0.5.13 spec/spec_helper.rb
scorpion-ioc-0.5.12 spec/spec_helper.rb
scorpion-ioc-0.5.11 spec/spec_helper.rb
scorpion-ioc-0.5.10 spec/spec_helper.rb
scorpion-ioc-0.5.9 spec/spec_helper.rb
scorpion-ioc-0.5.8 spec/spec_helper.rb
scorpion-ioc-0.5.7 spec/spec_helper.rb
scorpion-ioc-0.5.6 spec/spec_helper.rb
scorpion-ioc-0.5.5 spec/spec_helper.rb
scorpion-ioc-0.5.4 spec/spec_helper.rb
scorpion-ioc-0.5.2 spec/spec_helper.rb
scorpion-ioc-0.5.1 spec/spec_helper.rb
scorpion-ioc-0.5.0 spec/spec_helper.rb