Sha256: 964d66b1e0a4b9b7d3f57269125aa3799a7a1d14ba659ea8ef0092bf36228621

Contents?: true

Size: 833 Bytes

Versions: 10

Compression:

Stored size: 833 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 with the @sauce tag", :sauce => true do

  before :all do
    $TAGGED_EXECUTIONS = 0
  end

  after :all do
    $TAGGED_EXECUTIONS.should eq 2
  end

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

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

describe "Specs without the @sauce tag" do
  before :all do
    $UNTAGGED_EXECUTIONS = 0
  end

  after :all do
    $UNTAGGED_EXECUTIONS.should eq 1
  end

  it "should only run once" do
    $UNTAGGED_EXECUTIONS += 1
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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