Sha256: 0859cdb3393269fc2b1d954391a454ea52387e17485bbcd9d3036e68c1a88aa5

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require "database_cleaner"

require File.expand_path("../dummy/config/environment", __FILE__)
Dir["spec/support/**/*.rb"].sort.each { |file| load file }

RSpec.configure do |config|
  config.order = "random"
  DatabaseCleaner.strategy = :transaction

  config.around(:each, db: true) do |example|
    DatabaseCleaner.start
    example.run
    DatabaseCleaner.clean
  end

  unless defined?(silence_stream)
    require "active_support/testing/stream"
    config.include ActiveSupport::Testing::Stream
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
fx-0.8.0 spec/spec_helper.rb
fx-0.7.0 spec/spec_helper.rb
fx-jets-0.6.3s spec/spec_helper.rb
fx-0.6.2 spec/spec_helper.rb
fx-0.6.1 spec/spec_helper.rb
fx-0.6.0 spec/spec_helper.rb
fx-0.5.0 spec/spec_helper.rb
fx-0.4.0 spec/spec_helper.rb
fx-0.3.1 spec/spec_helper.rb
fx-0.3.0 spec/spec_helper.rb
fx-0.2.0 spec/spec_helper.rb
fx-0.1.0 spec/spec_helper.rb