#require 'capybara/mechanize' require 'capybara/rspec' require 'capybara/poltergeist' require 'active_record' require 'pry' require './models' ActiveRecord::Base.establish_connection({ adapter: :postgresql, host: "localhost", username: "postgres", password: "password", datababase: "integration_testing" }) include Capybara::DSL Capybara.javascript_driver = Capybara.default_driver = :poltergeist Capybara.app_host = "http://localhost:3000" Capybara.run_server = false