Sha256: 5423c7110fc2bf391410b597c0ddf0993e836906135c2b5109d7a1b1da81da00

Contents?: true

Size: 700 Bytes

Versions: 27

Compression:

Stored size: 700 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)

Rails.backtrace_cleaner.remove_silencers!

require 'rspec'
require 'rspec/rails'
require 'shoulda/matchers'
require 'database_cleaner'

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!
  # config
  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
    DatabaseCleaner.clean_with(:truncation)
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end

  # config.around(:each) do |example|
  #   DatabaseCleaner.cleaning do
  #     example.run
  #   end
  # end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
type_station-0.7.0 spec/spec_helper.rb
type_station-0.6.0 spec/spec_helper.rb
type_station-0.5.4 spec/spec_helper.rb
type_station-0.5.3 spec/spec_helper.rb
type_station-0.5.2 spec/spec_helper.rb
type_station-0.5.1 spec/spec_helper.rb
type_station-0.4.7 spec/spec_helper.rb
type_station-0.4.6 spec/spec_helper.rb
type_station-0.4.5 spec/spec_helper.rb
type_station-0.4.4 spec/spec_helper.rb
type_station-0.4.3 spec/spec_helper.rb
type_station-0.4.2 spec/spec_helper.rb
type_station-0.4.1 spec/spec_helper.rb
type_station-0.4.0 spec/spec_helper.rb
type_station-0.3.4 spec/spec_helper.rb
type_station-0.3.3 spec/spec_helper.rb
type_station-0.3.2 spec/spec_helper.rb
type_station-0.3.1 spec/spec_helper.rb
type_station-0.3.0 spec/spec_helper.rb
type_station-0.2.3 spec/spec_helper.rb