require 'coveralls' Coveralls.wear! ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require "database_cleaner" RSpec.configure do |config| config.mock_with :rspec config.order = "random" config.treat_symbols_as_metadata_keys_with_true_values = true config.filter_run focus: true config.run_all_when_everything_filtered = true config.before(:all) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:deletion) end config.around(:each) do |example| DatabaseCleaner.start example.run DatabaseCleaner.clean end end