lib/guard/jasmine/cli.rb in guard-jasmine-1.9.0 vs lib/guard/jasmine/cli.rb in guard-jasmine-1.9.1
- old
+ new
@@ -43,10 +43,15 @@
method_option :server_timeout,
:type => :numeric,
:default => 15,
:desc => 'The number of seconds to wait for the Jasmine spec server'
+ method_option :rackup_config,
+ :type => :string,
+ :aliases => '-c',
+ :desc => 'The rackup config to use (jasminerice only)'
+
method_option :bin,
:type => :string,
:aliases => '-b',
:desc => 'The location of the PhantomJS binary'
@@ -116,10 +121,10 @@
runner_options[:hide_success] = true
runner_options[:max_error_notify] = 0
if CLI.phantomjs_bin_valid?(runner_options[:phantomjs_bin])
- ::Guard::Jasmine::Server.start(runner_options[:server], runner_options[:port], runner_options[:server_env], runner_options[:spec_dir]) unless runner_options[:server] == :none
+ ::Guard::Jasmine::Server.start(runner_options) unless runner_options[:server] == :none
if CLI.runner_available?(runner_options)
result = ::Guard::Jasmine::Runner.run(paths, runner_options)
::Guard::Jasmine::Server.stop