Sha256: ec9e8130f979c78ead5443a4889b422defc788d8663339e6212dcdbecbc8c196

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

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

require 'simplecov'
SimpleCov.start 'rails'

require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'
require 'valid_attribute'
require 'pry'
require 'shoulda/matchers/active_record'
require 'shoulda/matchers/active_model'
require 'faker'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join('../../spec/support/**/*.rb')].each { |f| require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = 'random'

  config.include FactoryGirl::Syntax::Methods
  config.include Landable::Spec::CoreHelpers
  config.include Landable::Spec::HttpHelpers, type: :controller

  config.include Shoulda::Matchers::ActiveRecord
  config.extend Shoulda::Matchers::ActiveRecord
  config.include Shoulda::Matchers::ActiveModel
  config.extend Shoulda::Matchers::ActiveModel
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.14.0 spec/spec_helper.rb
landable-1.13.2 spec/spec_helper.rb