Skip to content

Instantly share code, notes, and snippets.

@tomas-stefano
Last active August 29, 2015 14:16
Show Gist options
  • Save tomas-stefano/9cb513d8b983630a8e2d to your computer and use it in GitHub Desktop.
Save tomas-stefano/9cb513d8b983630a8e2d to your computer and use it in GitHub Desktop.
Codebar student Capybara selenium browser starts
To setup (gem install bundler)
$ bundle
You need to create spec folder and move the two *_spec in there.
After:
$ rspec
source 'http://rubygems.org'
gem 'rspec'
gem 'capybara'
gem 'selenium-webdriver'
gem 'site_prism'
require 'bundler/setup'
Bundler.require
require 'capybara/rspec'
Capybara.run_server = false
Capybara.app_host = 'http://google.com'
Capybara.current_driver = :selenium
feature 'Useless specs' do
scenario 'something' do
visit('/')
expect(1).to eq(1)
end
scenario 'something' do
expect(1).to eq(1)
end
scenario 'something' do
expect(1).to eq(1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment