Sha256: 5f2e4f7da1878518d5ad30d3a48dbe8de49b21c5741f291756e1c9e05509a1ea

Contents?: true

Size: 827 Bytes

Versions: 5

Compression:

Stored size: 827 Bytes

Contents

unless defined?(RAKED)
  Bundler.require :default, :test
  Combustion.initialize! :active_record, :action_controller
end

require 'rspec/rails'
require 'capybara/rspec'
require 'database_cleaner'
require 'factory_girl'
load 'factories.rb'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.include TestHelpers::AuthenticationHelper

  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.order = "random"
  config.infer_base_class_for_anonymous_controllers = false
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

  config.before type: :feature do
    DatabaseCleaner.strategy = :truncation
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
outpost-cms-0.1.4 spec/spec_helper.rb
outpost-cms-0.1.3 spec/spec_helper.rb
outpost-cms-0.1.2 spec/spec_helper.rb
outpost-cms-0.1.1 spec/spec_helper.rb
outpost-cms-0.1.0 spec/spec_helper.rb