Permalink
Browse files

Fixed rspec execution metadata for rspec 2.2.1

  • Loading branch information...
ndbroadbent committed Dec 9, 2010
1 parent 4171f68 commit f700e0522c8f18182737a798aa4b357e4453a405
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ci/reporter/rspec.rb
View
@@ -33,9 +33,9 @@ def error?
!failure?
end
- def name() @example.execution_result[:exception_encountered].class.name end
- def message() @example.execution_result[:exception_encountered].message end
- def location() @example.execution_result[:exception_encountered].backtrace.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
# Custom +RSpec+ formatter used to hook into the spec runs and capture results.

0 comments on commit f700e05

Please sign in to comment.