Skip to content

Commit

Permalink
RSpec 2.2.1 compatability (crossroads@f700e05#diff-0)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliusgrigaitis committed Dec 14, 2010
1 parent 5559116 commit eca73f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ci/reporter/rspec.rb
Expand Up @@ -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
Expand Down

0 comments on commit eca73f1

Please sign in to comment.