Created
September 1, 2012 07:09
-
-
Save testingbot/3566237 to your computer and use it in GitHub Desktop.
ie rspec
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 'rspec' | |
require 'capybara/rspec' | |
require 'testingbot' | |
require 'testingbot/capybara' | |
TestingBot::config do |config| | |
config[:desired_capabilities] = { :browserName => "internet explorer", :version => 9, :platform => "WINDOWS" } | |
end | |
describe "People", :type => :request do | |
before :each do | |
Capybara.current_driver = :testingbot | |
Capybara.app_host = "http://testingbot.com" | |
end | |
it 'has a homepage with the word Selenium' do | |
visit '/' | |
page.should have_content('Selenium') | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
needs testingbot gem:
gem install testingbot