Permalink
Browse files

Fixed TAP formatter.

  • Loading branch information...
1 parent c14bd7e commit d2c79c5102f3fa1d97e7f1da05ef4c1d8ba5f41b @apeiros apeiros committed Apr 16, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/baretest/run/tap.rb
View
5 lib/baretest/run/tap.rb
@@ -21,7 +21,6 @@ def run_all
count = proc { |acc,csuite|
acc+
csuite.assertions.size+
- csuite.skipped.size+
csuite.suites.map { |d,suite| suite }.inject(0, &count)
}
puts "1..#{count[0, suite]}"
@@ -34,8 +33,10 @@ def run_test(assertion, setup)
printf "%sok %d - %s%s\n",
rv.status == :success ? '' : 'not ',
@current+=1,
- rv.description,
+ assertion.description,
rv.status == :success ? '' : " # #{rv.status}"
+
+ rv
end
end
end

0 comments on commit d2c79c5

Please sign in to comment.