Sha256: 9223d936bf1fc46592af8847e0f7d1d21b87832f3a2143b8466855a6f86dfca2

Contents?: true

Size: 1023 Bytes

Versions: 32

Compression:

Stored size: 1023 Bytes

Contents

desc 'firefox COMMAND', 'Run a command with VNC and test browser set up (alias: chrome)'
long_desc <<-LONGDESC
Example: `geordi firefox b cucumber` or `geordi firefox --setup 24.0`

Useful when you need Firefox for Selenium or the VNC set up, but can't use the
`geordi cucumber` command.

*Install* a special Firefox by calling with `--setup <version>`.

This command is aliased `chrome` for users running Selenium in Chrome.
LONGDESC

option :setup, :banner => 'FIREFOX_VERSION',
  :desc => 'Install a special test runner Firefox with the given version'

def firefox(*command)
  if options.setup
    fail 'Firefox version required (e.g. --setup 24.0)' if options.setup == 'setup'

    require 'geordi/firefox_for_selenium'
    Geordi::FirefoxForSelenium.install(options.setup)

  else
    require 'geordi/cucumber'

    Cucumber.new.setup_vnc
    FirefoxForSelenium.setup_firefox

    puts
    note_cmd command.join(' ')
    system *command # Util.system! would reset the Firefox PATH
  end
end

map 'chrome' => 'firefox'

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/commands/firefox.rb
geordi-2.12.2 lib/geordi/commands/firefox.rb
geordi-2.12.1 lib/geordi/commands/firefox.rb
geordi-2.12.0 lib/geordi/commands/firefox.rb
geordi-2.11.0 lib/geordi/commands/firefox.rb
geordi-2.10.1 lib/geordi/commands/firefox.rb
geordi-2.10.0 lib/geordi/commands/firefox.rb
geordi-2.9.0 lib/geordi/commands/firefox.rb
geordi-2.8.0 lib/geordi/commands/firefox.rb
geordi-2.7.0 lib/geordi/commands/firefox.rb
geordi-2.6.0 lib/geordi/commands/firefox.rb
geordi-2.5.0 lib/geordi/commands/firefox.rb
geordi-2.4.0 lib/geordi/commands/firefox.rb
geordi-2.3.0 lib/geordi/commands/firefox.rb
geordi-2.2.0 lib/geordi/commands/firefox.rb
geordi-2.1.0 lib/geordi/commands/firefox.rb
geordi-2.0.0 lib/geordi/commands/firefox.rb
geordi-1.10.0 lib/geordi/commands/firefox.rb
geordi-1.9.1 lib/geordi/commands/firefox.rb
geordi-1.9.0 lib/geordi/commands/firefox.rb