Sha256: 0df5572e349ed2d7750c117f8f884f1ba02f0687321d4921f22eee844513a424

Contents?: true

Size: 825 Bytes

Versions: 4

Compression:

Stored size: 825 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::Utilities::Connect.instance_variable_get(:@tunnel).should_not be_nil
  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

4 entries across 4 versions & 1 rubygems

Version Path
sauce-3.0.4 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-3.0.2 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-3.0.1 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb
sauce-3.0.0 spec/integration/rspec/spec/selenium/selenium_directory_spec.rb