# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path('../dummy/config/environment', __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'capybara' require 'capybara/rails' require 'capybara/rspec' require 'capybara/dsl' require 'jquery_mockjax_rails' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f } Rails.backtrace_cleaner.remove_silencers! RSpec.configure do |config| config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.include Capybara::DSL end