Created
March 14, 2013 23:10
-
-
Save joshdover/5166053 to your computer and use it in GitHub Desktop.
Standalone RSpec + Capybara Suite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "rspec" | |
gem "capybara" | |
gem "headless" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'rspec' | |
require 'capybara/rspec' | |
RSpec.configure do |config| | |
Capybara.configure do |capybara| | |
capybara.run_server = false | |
capybara.app_host = 'https://example.com/' | |
capybara.default_driver = :selenium | |
require 'headless' | |
headless = Headless.new | |
headless.start | |
end | |
config.include Capybara::DSL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment