Created
June 12, 2012 19:43
-
-
Save testingbot/2919685 to your computer and use it in GitHub Desktop.
ipad capybara
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 => "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