Sha256: 5b24eded6a7ad79ac5331b6c80b7e251f27d64b5d30f9f0f9a222f9afa7203cf
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rspec/rails" require 'rspec/its' require 'rspec/collection_matchers' require 'mailboxer_multi_attach' ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load Factories require 'factory_girl' Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each {|f| require f} RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec # Rspec only clears out ActionMailer::Base#deliveries for mailers specs config.after(:each, type: :integration){ ActionMailer::Base.deliveries.clear } config.infer_spec_type_from_file_location! end
Version data entries
6 entries across 6 versions & 1 rubygems