Sha256: 2504082fb39602316faa1a1d766611ccf85d4f01aca1e42ad1ab2460313aade8

Contents?: true

Size: 778 Bytes

Versions: 2

Compression:

Stored size: 778 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"]
  ]
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

2 entries across 2 versions & 1 rubygems

Version Path
sauce-3.5.5 lib/sauce/utilities/rake.rb
sauce-3.5.4 lib/sauce/utilities/rake.rb