Skip to content

Instantly share code, notes, and snippets.

@testingbot
Created June 12, 2012 19:43
Show Gist options
  • Save testingbot/2919685 to your computer and use it in GitHub Desktop.
Save testingbot/2919685 to your computer and use it in GitHub Desktop.
ipad capybara
require 'rspec'
require 'capybara/rspec'
require 'testingbot'
require 'testingbot/capybara'
TestingBot::config do |config|
config[:desired_capabilities] = { :browserName => "ipad", :platform => "MAC" }
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