Module: Sauce

Defined in:
lib/sauce/job.rb,
lib/sauce/heroku.rb,
lib/sauce/client.rb,
lib/sauce/config.rb,
lib/sauce/railtie.rb,
lib/sauce/version.rb,
lib/sauce/capybara.rb,
lib/sauce/capybara.rb,
lib/sauce/selenium.rb,
lib/sauce/test_unit.rb,
lib/sauce/test_unit.rb,
lib/sauce/test_unit.rb,
lib/sauce/test_base.rb,
lib/sauce/utilities.rb,
lib/sauce/driver_pool.rb,
lib/sauce/utilities/rake.rb,
lib/sauce/utilities/connect.rb,
lib/sauce/parallel/test_group.rb,
lib/sauce/parallel/test_broker.rb,
lib/sauce/utilities/rails_server.rb,
lib/generators/sauce/install/install_generator.rb

Defined Under Namespace

Modules: Capybara, Generators, RSpec, SeleniumForTestUnit, SeleniumForTestUnitClassMethods, TestBase, Utilities Classes: Client, Config, Job, RailsTestCase, Railtie, Selenium2, TestBroker, TestGroup

Constant Summary collapse

MAJOR_VERSION =
'3.5'
PATCH_VERSION =
'3'

Class Method Summary collapse

Class Method Details

.clear_configObject


15
16
17
# File 'lib/sauce/config.rb', line 15

def self.clear_config
  @cfg = nil
end

.config {|get_config| ... } ⇒ Object

Yields:


6
7
8
# File 'lib/sauce/config.rb', line 6

def self.config
  yield get_config
end

.driver_poolObject


2
3
4
# File 'lib/sauce/driver_pool.rb', line 2

def self.driver_pool
  @@driver_pool ||= {}
end

.get_config(default = false) ⇒ Object


10
11
12
13
# File 'lib/sauce/config.rb', line 10

def self.get_config(default = false)
  get_default = default == :default ? {} : false
  @cfg ||= Sauce::Config.new(get_default)
end

.versionObject


5
6
7
# File 'lib/sauce/version.rb', line 5

def version
  "#{MAJOR_VERSION}.#{PATCH_VERSION}"
end