Permalink
Browse files

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

This reverts commit eca73f1.
  • Loading branch information...
1 parent 30aa3d2 commit 48d7389f19bace8e7765d889bcd4425e3aab699b @next2you next2you committed Feb 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ci/reporter/rspec.rb
View
@@ -43,9 +43,9 @@ def error?
!failure?
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
+ def name() exception.class.name end
+ def message() exception.message end
+ def location() (exception.backtrace || ["No backtrace available"]).join("\n") end
end
class RSpec2Failure < RSpecFailure

0 comments on commit 48d7389

Please sign in to comment.