Module: Sauce

Defined in:
lib/sauce/job.rb,
lib/sauce/client.rb,
lib/sauce/config.rb,
lib/sauce/heroku.rb,
lib/sauce/railtie.rb,
lib/sauce/version.rb,
lib/sauce/capybara.rb,
lib/sauce/capybara.rb,
lib/sauce/selenium.rb,
lib/sauce/selenium.rb,
lib/sauce/test_base.rb,
lib/sauce/test_unit.rb,
lib/sauce/test_unit.rb,
lib/sauce/test_unit.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

Selenium_browsers =
ENV['SELENIUM_BROWSER'] || ["*firefox"]
Selenium_url =

Local Configuration

ENV['SELENIUM_URL']     || "http://localhost:3000"
Selenium_host =
ENV['SELENIUM_HOST']    || "localhost"
Selenium_port =
ENV['SELENIUM_PORT']    || "4444"
MAJOR_VERSION =
'3.5'
PATCH_VERSION =
'11'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.webdriver_methodObject

Returns the value of attribute webdriver_method.



33
34
35
# File 'lib/sauce/selenium.rb', line 33

def webdriver_method
  @webdriver_method
end

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