Sha256: 30e32718e0af7beab6d5092ee7860f0d6553eda7c3f7ea9d20fa4a056ecb4cd0

Contents?: true

Size: 855 Bytes

Versions: 15

Compression:

Stored size: 855 Bytes

Contents

module Sauce
  module Utilities
    module Rake

      def self.sauce_helper
        helper_text = <<-ENDHEADER
# You should edit this file with the browsers you wish to use
# For options, check out http://saucelabs.com/docs/platforms
require "sauce"
        ENDHEADER

        helper_text << "require \"sauce/capybara\"" if Object.const_defined? "Capybara"
        helper_text << <<-ENDFILE

Sauce.config do |config|
  config[:browsers] = [
    ["OS", "BROWSER", "VERSION"],
    ["OS", "BROWSER", "VERSION"]
  ]
  config[:sauce_connect_4_executable] = # path to Sauce Connect 4 executable
end
        ENDFILE
        if Object.const_defined? "Capybara"
          helper_text << "Capybara.default_driver = :sauce \n"
          helper_text << "Capybara.javascript_driver = :sauce"
        end
        
        return helper_text
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
sauce-3.7.2 lib/sauce/utilities/rake.rb
sauce-3.7.1 lib/sauce/utilities/rake.rb
sauce-3.7.0 lib/sauce/utilities/rake.rb
sauce-3.5.11 lib/sauce/utilities/rake.rb
sauce-3.5.10 lib/sauce/utilities/rake.rb
sauce-3.5.9 lib/sauce/utilities/rake.rb
sauce-3.5.8 lib/sauce/utilities/rake.rb
sauce-3.5.7 lib/sauce/utilities/rake.rb
sauce_ruby-3.5.11 lib/sauce/utilities/rake.rb
sauce_ruby-3.5.10 lib/sauce/utilities/rake.rb
sauce_ruby-3.5.9 lib/sauce/utilities/rake.rb
sauce_ruby-3.5.8 lib/sauce/utilities/rake.rb
sauce_ruby-3.5.7 lib/sauce/utilities/rake.rb
sauce_ruby-3.5.6 lib/sauce/utilities/rake.rb
sauce-3.5.6 lib/sauce/utilities/rake.rb