Sha256: 6498cfbc420b1a56a535f66328cbf3329d520288156f725c99d16070e0342200
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
ENV['USE_SAUCE'] ||= 'false' <% unless base_url.empty? -%> ENV['BASE_URL'] ||= "<%= base_url %>" <% end -%> require "watir_drops" require "watir_model" require "require_all" require_rel "support/data" require_rel "support/pages" require_rel "support/site" require_rel 'support/sauce_helpers' if ENV['USE_SAUCE'] == 'true' include <%= name.split('_').map(&:capitalize).join %> include Page RSpec.configure do |config| config.include SauceHelpers if ENV['USE_SAUCE'] == 'true' config.before(:each) do |test| @browser = if ENV['USE_SAUCE'] == 'true' initialize_driver(test.full_description) else Watir::Browser.new end Base.browser = @browser Site.base_url = ENV['BASE_URL'] end config.after(:each) do submit_results(@browser.wd.session_id, !test.exception) if ENV['USE_SAUCE'] == 'true' @browser.quit end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir_install-0.3.1 | lib/watir_install/generators/new/spec/spec_helper.rb.tt |