Last active
August 29, 2015 14:16
-
-
Save tomas-stefano/9cb513d8b983630a8e2d to your computer and use it in GitHub Desktop.
Codebar student Capybara selenium browser starts
This file contains 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
To setup (gem install bundler) | |
$ bundle | |
You need to create spec folder and move the two *_spec in there. | |
After: | |
$ rspec |
This file contains 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 'http://rubygems.org' | |
gem 'rspec' | |
gem 'capybara' | |
gem 'selenium-webdriver' | |
gem 'site_prism' |
This file contains 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 'bundler/setup' | |
Bundler.require | |
require 'capybara/rspec' | |
Capybara.run_server = false | |
Capybara.app_host = 'http://google.com' | |
Capybara.current_driver = :selenium |
This file contains 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
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