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