Sha256: 904b1993f4c2d25d92d63294b80df09c54d07ae0ac230f53ffa8b08d34687855

Contents?: true

Size: 784 Bytes

Versions: 17

Compression:

Stored size: 784 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
# Not sure if I need this
# ActiveRecord::Migrator.migrations_paths = [File.expand_path("../dummy/db/migrate", __FILE__)]

require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'
require 'pry'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.infer_spec_type_from_file_location!
  config.order = "random"
  config.include Devise::TestHelpers, type: :controller
  config.include FactoryGirl::Syntax::Methods
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_email_templates-0.6.1 spec/spec_helper.rb
effective_email_templates-0.6.0 spec/spec_helper.rb
effective_email_templates-0.5.1 spec/spec_helper.rb
effective_email_templates-0.5.0 spec/spec_helper.rb
effective_email_templates-0.4.6 spec/spec_helper.rb
effective_email_templates-0.4.5 spec/spec_helper.rb
effective_email_templates-0.4.4 spec/spec_helper.rb
effective_email_templates-0.4.3 spec/spec_helper.rb
effective_email_templates-0.4.2 spec/spec_helper.rb
effective_email_templates-0.4.1 spec/spec_helper.rb
effective_email_templates-0.4.0 spec/spec_helper.rb
effective_email_templates-0.3.5 spec/spec_helper.rb
effective_email_templates-0.3.4 spec/spec_helper.rb
effective_email_templates-0.3.3 spec/spec_helper.rb
effective_email_templates-0.3.1 spec/spec_helper.rb
effective_email_templates-0.3.0 spec/spec_helper.rb
effective_email_templates-0.2.8 spec/spec_helper.rb