Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lib/guard/jasmine/cli.rb #71

Merged
merged 1 commit into from
Aug 2, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/guard/jasmine/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ class CLI < Thor
default_task :spec

desc 'spec', 'Run the Jasmine spec runner'


method_option :focus,
:type => :boolean,
:aliases => '-f',
:default => false,
:desc => 'Specdoc focus to hide successful tests when at least one test fails'

method_option :server,
:type => :string,
:aliases => '-s',
Expand Down Expand Up @@ -93,9 +99,12 @@ def spec(*paths)
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

Expand Down