github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

aslakhellesoy / cucumber

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1,840
    • 283
  • Source
  • Commits
  • Network (283)
  • Downloads (135)
  • Wiki (69)
  • Graphs
  • Tree: 07a8f2b

click here to add a description

click here to add a homepage

  • Branches (8)
    • 517
    • call_many_steps
    • feature_loaders
    • gherkin
    • master
    • remove-rails
    • tableish-experiment
    • wire_protocol
  • Tags (135)
    • v0.6.2
    • v0.6.1
    • v0.6.0
    • v0.5.3
    • v0.5.2
    • v0.5.1
    • v0.5.0
    • v0.4.5.rc2
    • v0.4.5.rc1
    • v0.4.4
    • v0.4.3
    • v0.4.2
    • v0.4.1
    • v0.4.0.rc1
    • v0.4.0
    • v0.3.104.1
    • v0.3.104
    • v0.3.103
    • v0.3.102.2
    • v0.3.102.1
    • v0.3.102
    • v0.3.101.2
    • v0.3.101.1
    • v0.3.101
    • v0.3.100
    • v0.3.99
    • v0.3.98
    • v0.3.97
    • v0.3.96
    • v0.3.95
    • v0.3.94.1
    • v0.3.94
    • v0.3.93.1
    • v0.3.93
    • v0.3.92
    • v0.3.91
    • v0.3.90
    • v0.3.11.200906161550
    • v0.3.11.6
    • v0.3.11.5
    • v0.3.11.3
    • v0.3.11.2
    • v0.3.11.1
    • v0.3.11
    • v0.3.10
    • v0.3.9.5
    • v0.3.9.4
    • v0.3.9.3
    • v0.3.9.2
    • v0.3.9.1
    • v0.3.9
    • v0.3.8
    • v0.3.7.5
    • v0.3.7.4
    • v0.3.7.3
    • v0.3.7.1
    • v0.3.7
    • v0.3.6.1
    • v0.3.6
    • v0.3.5.1
    • v0.3.5
    • v0.3.4
    • v0.3.3.6
    • v0.3.3.5
    • v0.3.3.4
    • v0.3.3.3
    • v0.3.3.2
    • v0.3.3.1
    • v0.3.3
    • v0.3.2
    • v0.3.1.1
    • v0.3.1
    • v0.3.0.1
    • v0.3.0
    • v0.2.3.4
    • v0.2.3.3
    • v0.2.3.2
    • v0.2.3.1
    • v0.2.3
    • v0.2.2.2
    • v0.2.2.1
    • v0.2.2
    • v0.2.1
    • v0.2.0.4
    • v0.2.0.3
    • v0.2.0.2
    • v0.2.0
    • v0.1.100.5
    • v0.1.100.4
    • v0.1.100.3
    • v0.1.100.1
    • v0.1.99.23
    • v0.1.99.22
    • v0.1.99.21
    • v0.1.99.20
    • v0.1.99.19
    • v0.1.99.18
    • v0.1.99.17
    • v0.1.99.16
    • v0.1.99.15
    • v0.1.99.14
    • v0.1.99.13
    • v0.1.99.12
    • v0.1.99.10
    • v0.1.99.9
    • v0.1.99.8
    • v0.1.99.7
    • v0.1.99.6
    • v0.1.99.5
    • v0.1.99.4
    • v0.1.99.3
    • v0.1.99.2
    • v0.1.16.4
    • v0.1.16.3
    • v0.1.16.2
    • v0.1.16.1
    • v0.1.16
    • v0.1.15.2
    • v0.1.15.1
    • v0.1.15
    • v0.1.14.2
    • v0.1.14.1
    • v0.1.14
    • v0.1.13.3
    • v0.1.13.2
    • v0.1.13.1
    • v0.1.13
    • v0.1.12
    • v0.1.11
    • v0.1.10
    • v0.1.9
    • v0.1.8
    • v0.1.7
    • v0.1.6
    • 0.3.11.200906161540
Sending Request…
Click here to lend your support to: cucumber and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

BDD that talks to domain experts first and code second — Read more

  cancel

http://cukes.info/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Replace my incorrect comment with tomtt's great trick 
aslakhellesoy (author)
Thu Apr 16 09:39:30 -0700 2009
commit  07a8f2b5677db00125bbe73af51737bd5bccf588
tree    38e60098b09026ef8f330d51fb41d591e49d7d1b
parent  1a0a06a8be7dd0e6ae3a308c73b08918019dd69a
cucumber / examples / watir / features / support / env.rb examples/watir/features/support/env.rb
100644 33 lines (28 sloc) 0.526 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'spec/expectations'
 
if ENV['FIREWATIR']
  require 'firewatir'
  Browser = FireWatir::Firefox
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 (#{PLATFORM})"
  end
end
 
# "before all"
browser = Browser.new
 
Before do
  @browser = browser
end
 
# "after all"
at_exit do
  browser.close
end
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server