Module: Sauce::Utilities::Rake

Defined in:
lib/sauce/utilities/rake.rb

Class Method Summary collapse

Class Method Details

.sauce_helperObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/sauce/utilities/rake.rb', line 5

def self.sauce_helper
  helper_text = "# You should edit this file with the browsers you wish to use\n# For options, check out http://saucelabs.com/docs/platforms\nrequire \"sauce\"\n  ENDHEADER\n\n  helper_text << \"require \\\"sauce/capybara\\\"\" if Object.const_defined? \"Capybara\"\n  helper_text << <<-ENDFILE\n\nSauce.config do |config|\n  config[:browsers] = [\n    [\"OS\", \"BROWSER\", \"VERSION\"],\n    [\"OS\", \"BROWSER\", \"VERSION\"]\n  ]\n  config[:sauce_connect_4_executable] = # path to Sauce Connect 4 executable\nend\n  ENDFILE\n  if Object.const_defined? \"Capybara\"\n    helper_text << \"Capybara.default_driver = :sauce \\n\"\n    helper_text << \"Capybara.javascript_driver = :sauce\"\n  end\n  \n  return helper_text\nend\n"