lib/guard/jasmine/cli.rb in guard-jasmine-1.5.1 vs lib/guard/jasmine/cli.rb in guard-jasmine-1.6.0

- old
+ new

@@ -20,10 +20,16 @@ default_task :spec desc 'spec', 'Run the Jasmine spec runner' + method_option :focus, + :type => :boolean, + :aliases => '-f', + :default => true, + :desc => 'Specdoc focus to hide successful tests when at least one test fails' + method_option :server, :type => :string, :aliases => '-s', :default => 'auto', :desc => 'Server to start, either `auto`, `webrick`, `mongrel`, `thin`, `unicorn`, `jasmine_gem` or `none`' @@ -91,12 +97,15 @@ runner[:server_env] = options.server_env runner[:spec_dir] = options.spec_dir runner[:console] = [:always, :never, :failure].include?(options.console.to_sym) ? options.console.to_sym : :failure runner[:errors] = [:always, :never, :failure].include?(options.errors.to_sym) ? options.errors.to_sym : :failure runner[:server] = options.server.to_sym + runner[:focus] = options.focus + runner[:notification] = false runner[:hide_success] = true + runner[:max_error_notify] = 0 runner[:specdoc] = :always if CLI.phantomjs_bin_valid?(runner[:phantomjs_bin]) ::Guard::Jasmine::Server.start(runner[:server], runner[:port], runner[:server_env], runner[:spec_dir]) unless runner[:server] == :none