# Base configuration for RSPEC
ENV['RAILS_ENV'] ||= 'test'
require 'coveralls'
Coveralls.wear!
require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'capybara/rspec'
require 'rspec/rails'
require 'rails/test_help'

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.infer_spec_type_from_file_location!

  # rspec-mocks
  config.mock_with :rspec do |mocks|
    # Prevents you from mocking or stubbing a method that does not exist on
    # a real object.
    mocks.verify_partial_doubles = true
  end
end
