ENV["RAILS_ENV"] ||= 'test' begin require File.expand_path('../dummy/config/environment', __FILE__) rescue LoadError fail 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`' end require 'rspec/rails' require 'pry' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |file| require file } RSpec.configure do |config| # == Mock Framework # # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: # # config.mock_with :mocha # config.mock_with :flexmock # config.mock_with :rr config.mock_with :rspec config.fixture_path = "#{::Rails.root}/spec/fixtures" # because database cleaner config.use_transactional_fixtures = false config.include FeatureHelper, type: :feature end