# Configure Rails Environment 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 ruby files with custom matchers and macros, etc, # in spec/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 # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures config.fixture_path = "#{::Rails.root}/spec/fixtures" # because database cleaner config.use_transactional_fixtures = false config.include FeatureHelper, type: :feature end