Sha256: 797671662271a2439041663e24c9c64de922fd46b4eccf0aabd9a7cc6c8b530b
Contents?: true
Size: 1.43 KB
Versions: 4
Compression:
Stored size: 1.43 KB
Contents
require 'coveralls' Coveralls.wear! ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require "active_patterns" require 'database_cleaner' # Custom rspec helpers Dir[File.expand_path("../support/**/*.rb", __FILE__)].each { |f| require f } # Pending tests. ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration) RSpec.configure do |config| # Use rspec for mocking and stubbing config.mock_with :rspec # Run tests in a random order config.order = "random" # Run tests tagged by :focus config.treat_symbols_as_metadata_keys_with_true_values = true config.filter_run focus: true config.run_all_when_everything_filtered = true # ============================================================================ # Database cleaning # ============================================================================ config.before(:all) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:deletion) end config.around(:each) do |example| DatabaseCleaner.start example.run DatabaseCleaner.clean end # ============================================================================ # Postpone garbage collection # ============================================================================ config.before(:each) do GC.disable end config.after(:each) do GC.enable end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
active_merge-1.2.1 | spec/spec_helper.rb |
active_merge-1.2.0 | spec/spec_helper.rb |
active_merge-1.1.0 | spec/spec_helper.rb |
active_merge-1.0.5 | spec/spec_helper.rb |