Skip to content

Instantly share code, notes, and snippets.

@testingbot
Created September 1, 2012 07:09
Show Gist options
  • Save testingbot/3566237 to your computer and use it in GitHub Desktop.
Save testingbot/3566237 to your computer and use it in GitHub Desktop.
ie rspec
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
@testingbot
Copy link
Author

needs testingbot gem:

gem install testingbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment