Sha256: 02af05ab0cf33611cff17d2d0e6bfd9fd224aa0bac986dd6f7fc3ae097b82865
Contents?: true
Size: 833 Bytes
Versions: 4
Compression:
Stored size: 833 Bytes
Contents
require 'rspec' require 'capybara/rspec' require 'selenium/webdriver' require 'testingbot' RSpec.configure do |config| caps = Selenium::WebDriver::Remote::Capabilities.firefox caps.version = "8" caps.platform = :WINDOWS Capybara.default_driver = :testingbot Capybara.register_driver :testingbot do |app| client = Selenium::WebDriver::Remote::Http::Default.new client.timeout = 120 Capybara::Selenium::Driver.new(app, :browser => :remote, :url => "http://key:secret@hub.testingbot.com:4444/wd/hub", :http_client => client, :desired_capabilities => caps) end end describe "People", :type => :request do before :all do Capybara.app_host = "http://testingbot.com" end it 'has a homepage with the word Selenium' do visit '/' page.should have_content('Selenium') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
testingbot-0.0.9 | examples/capybara.rb |
testingbot-0.0.8 | examples/capybara.rb |
testingbot-0.0.7 | examples/capybara.rb |
testingbot-0.0.6 | examples/capybara.rb |