Skip to content

Commit

Permalink
less data for the log transport.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Mar 8, 2012
1 parent 293213a commit 3ae0d3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/guard/jasmine/phantomjs/run-jasmine.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ page.onConsoleMessage = (msg, line, source) ->
logs[currentSpecId] = []

else
logs[currentSpecId].push("#{ msg } in #{ source } (line #{ line })") if currentSpecId isnt -1
logs[currentSpecId].push(msg) if currentSpecId isnt -1

# Initialize the page before the JavaScript is run.
#
Expand Down
4 changes: 3 additions & 1 deletion lib/guard/jasmine/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ def report_specdoc_suite(suite, passed, options, level = 0)
def report_specdoc_logs(spec, options, level)
if spec['logs'] && (options[:console] == :always || (options[:console] == :failure && !spec['passed']))
spec['logs'].each do |log|
Formatter.info(indent(" • #{ format_message(log, true) }", level))
log.split("\n").each do |message|
Formatter.info(indent(" • #{ message }", level))
end
end
end
end
Expand Down

0 comments on commit 3ae0d3d

Please sign in to comment.