Sha256: be2a581624ec6b16a18c1e71eee9ab66b4fb3afe87da1d871c73a0aad48ae47c

Contents?: true

Size: 769 Bytes

Versions: 26

Compression:

Stored size: 769 Bytes

Contents

require "rspec"
require "rspec/mocks"
require "spec_helper"
require "sauce/capybara"

class MyRackApp
  def self.call(env)
    [200, {}, ["Hello"]]
  end
end

Sauce.config do |c|
  c.browsers = [
      ["Windows 2008", "iexplore", "9"],
      ["Linux", "opera", 12]
  ]
end

Capybara.app = MyRackApp

describe "The Selenium Directory with Capybara", :js => true do

  include Capybara::DSL
  it "should get run on every defined browser", :js => true do
    visit "http://www.google.com"
  end

  it "should have the same driver as stock webdriver", :js => true do
    Capybara.current_session.driver.browser.should eq @selenium
  end

  it "should not create a new driver" do
    ::Sauce::Selenium2.should_not_receive(:new)
    visit "http://wwww.google.com"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sauce-3.3.2 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.3.1 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.3.0 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.2.0 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.1.3 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.1.2 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.1.1 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.1.0 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.6 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.5 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.4 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.2 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.1 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.0 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-2.5.2 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-3.0.0.beta.2 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-2.5.1 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-2.4.6 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-2.4.5 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb
sauce-2.4.4 spec/integration/rspec/spec/selenium/selenium_with_capybara_spec.rb