Sha256: ad2b6010365a9fd601d665edd6cd48cfbb1fb7509393bdf349dc7a2baa10e31a

Contents?: true

Size: 834 Bytes

Versions: 10

Compression:

Stored size: 834 Bytes

Contents

require "spec_helper"
require "sauce"
require "sauce/connect"

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

  c[:application_host] = "localhost"
end

describe "Specs in the Selenium Directory" do

  before :all do
    $EXECUTIONS = 0
  end

  after :all do
    $EXECUTIONS.should be 2
  end

  it "should get run on every defined browser" do
    $EXECUTIONS += 1
  end

  it "should be using Sauce Connect" do
    Sauce::RSpec::SeleniumExampleGroup.class_variable_defined?(:@@tunnel).should be_true
  end
end

describe "Specs in the Selenium Directory with the sauce tag", :sauce => true do

  before :all do
    $EXECUTIONS = 0
  end

  after :all do
    $EXECUTIONS.should be 2
  end

  it "should get run on every defined browser" do
    $EXECUTIONS += 1
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sauce-2.5.2 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-3.0.0.beta.2 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.5.1 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.6 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.5 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.4 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.3 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.2 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.1 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-2.4.0 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb