Sha256: 6c2c6b8121a24a4ac8996e55e15f032a20ca3f030a3358d7a2bf33a7531496b5

Contents?: true

Size: 818 Bytes

Versions: 8

Compression:

Stored size: 818 Bytes

Contents

require 'simplecov'
SimpleCov.start

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

8 entries across 8 versions & 1 rubygems

Version Path
scorpion-ioc-0.6.2 spec/spec_helper.rb
scorpion-ioc-0.6.1 spec/spec_helper.rb
scorpion-ioc-0.6.0 spec/spec_helper.rb
scorpion-ioc-0.5.23 spec/spec_helper.rb
scorpion-ioc-0.5.22 spec/spec_helper.rb
scorpion-ioc-0.5.21 spec/spec_helper.rb
scorpion-ioc-0.5.20 spec/spec_helper.rb
scorpion-ioc-0.5.19 spec/spec_helper.rb