Sha256: 53045b70de5eb5646b0f5a9250889553fbe1764926d88bfef2c9f98b5140577e
Contents?: true
Size: 964 Bytes
Versions: 7
Compression:
Stored size: 964 Bytes
Contents
desc 'firefox COMMAND', 'Run a command with VNC set up (and the test firefox, if present)' 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, :type => :string, :banner => 'setup=FIREFOX_VERSION', :desc => 'Install a special test-runner Firefox with the given version' def firefox(*command) if options.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
7 entries across 7 versions & 1 rubygems