Sha256: e062ec1875a31b000a76bdd3e32878957e98178e3a2d522e1d64e6afa1b72630

Contents?: true

Size: 637 Bytes

Versions: 50

Compression:

Stored size: 637 Bytes

Contents

begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end

browser = nil

if ENV['FIREFOX']
  require 'watir-webdriver'
  Browser = Watir::Browser
  browser = Browser.new :ff
else
  case RUBY_PLATFORM
  when /darwin/
    require 'safariwatir'
    Browser = Watir::Safari
  when /win32|mingw/
    require 'watir'
    Browser = Watir::IE
  when /java/
    require 'celerity'
    Browser = Celerity::Browser
  else
    raise "This platform is not supported (#{RUBY_PLATFORM})"
  end

  # "before all"
  browser = Browser.new
end

Before do
  @browser = browser
end

# "after all"
at_exit do
  browser.close
end

Version data entries

50 entries across 48 versions & 3 rubygems

Version Path
cucumber-2.99.0 examples/watir/features/support/env.rb
cucumber-3.0.0.pre.2 examples/watir/features/support/env.rb
mobiusloop-0.1.5 examples/watir/features/support/env.rb
cucumber-3.0.0.pre.1 examples/watir/features/support/env.rb
cucumber-2.4.0 examples/watir/features/support/env.rb
mobiusloop-0.1.3 examples/watir/features/support/env.rb
mobiusloop-0.1.2 examples/watir/features/support/env.rb
cucumber-2.3.3 examples/watir/features/support/env.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/examples/watir/features/support/env.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/examples/watir/features/support/env.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/examples/watir/features/support/env.rb
cucumber-2.3.2 examples/watir/features/support/env.rb
cucumber-2.3.1 examples/watir/features/support/env.rb
cucumber-2.3.0 examples/watir/features/support/env.rb
cucumber-2.2.0 examples/watir/features/support/env.rb
cucumber-2.1.0 examples/watir/features/support/env.rb
cucumber-2.0.2 examples/watir/features/support/env.rb
cucumber-2.0.1 examples/watir/features/support/env.rb
cucumber-1.3.20 examples/watir/features/support/env.rb
cucumber-2.0.0 examples/watir/features/support/env.rb