Sha256: c600a75e8ed029105c9b34ee4a3020915c7589d21e643d38fa2038d3d8936032
Contents?: true
Size: 971 Bytes
Versions: 12
Compression:
Stored size: 971 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. 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 Interaction.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 Interaction.note_cmd command.join(' ') system *command # Util.run! would reset the Firefox PATH end end map 'chrome' => 'firefox'
Version data entries
12 entries across 12 versions & 1 rubygems