Permalink
Browse files

RSpec 2.2.1 compatability (crossroads@f700e05#diff-0)

  • Loading branch information...
1 parent 5559116 commit eca73f1375d68a20bb3e2d5741fe9820332b0538 @sauliusgrigaitis sauliusgrigaitis committed Dec 14, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ci/reporter/rspec.rb
@@ -43,9 +43,9 @@ def error?
!failure?
end
- def name() exception.class.name end
- def message() exception.message end
- def location() (exception.backtrace || ["No backtrace available"]).join("\n") end
+ def name() @example.metadata[:execution_result][:exception].class.name end
+ def message() @example.metadata[:execution_result][:exception].message end
+ def location() @example.metadata[:execution_result][:exception].backtrace.join("\n") end
end
class RSpec2Failure < RSpecFailure

0 comments on commit eca73f1

Please sign in to comment.