Sha256: 8b3b007ab52c9535982c4fec0ed466b60d022f23543f7bc323445d2e7aab52cc

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

require "watir_drops"
require "watir_model"
require "require_all"
require_rel "support/data"
require_rel "support/pages"
include <%= name.split('_').map(&:capitalize).join %>

if ENV['USE_SAUCE'] == 'true'
  require_rel 'support/sauce_helpers'
end

RSpec.configure do |config|
  config.include SauceHelpers if ENV['USE_SAUCE'] == 'true'

  config.before(:each) do
    @browser = if ENV['USE_SAUCE'] == 'true'
                 initialize_driver(test.full_description)
               else
                 Watir::Browser.new
               end

    WatirDrops::PageObject.browser = @browser
  end

  config.after(:each) do
    @browser.quit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir_install-0.3.0 lib/watir_install/generators/new/spec/spec_helper.rb.tt