Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgrade to RSpec 2.8.0

  • Loading branch information...
commit 3c520b0b4855fb9789253f7b6784187c7fbf7be8 1 parent b6f6def
@nicksieger nicksieger authored
Showing with 12 additions and 10 deletions.
  1. +8 −8 Gemfile.lock
  2. +4 −2 lib/ci/reporter/rspec.rb
View
16 Gemfile.lock
@@ -9,7 +9,7 @@ GEM
gherkin (>= 2.3.5)
json (>= 1.4.6)
term-ansicolor (>= 1.0.5)
- diff-lcs (1.1.2)
+ diff-lcs (1.1.3)
gherkin (2.3.5)
json (>= 1.4.6)
gherkin (2.3.5-java)
@@ -25,14 +25,14 @@ GEM
rcov (0.9.9)
rcov (0.9.9-java)
rdoc (3.9.2)
- rspec (2.6.0)
- rspec-core (~> 2.6.0)
- rspec-expectations (~> 2.6.0)
- rspec-mocks (~> 2.6.0)
- rspec-core (2.6.4)
- rspec-expectations (2.6.0)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
- rspec-mocks (2.6.0)
+ rspec-mocks (2.8.0)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
term-ansicolor (1.0.5)
View
6 lib/ci/reporter/rspec.rb
@@ -72,8 +72,10 @@ def location
output.push "#{exception.class.name << ":"}" unless exception.class.name =~ /RSpec/
output.push @exception.message
- @formatter.format_backtrace(@exception.backtrace, @example).lines.each do |backtrace_info|
- output.push " #{backtrace_info}"
+ [@formatter.format_backtrace(@exception.backtrace, @example)].flatten.each do |backtrace_info|
+ backtrace_info.lines.each do |line|
+ output.push " #{line}"
+ end
end
output.join "\n"
end
Please sign in to comment.
Something went wrong with that request. Please try again.