Permalink
Browse files

Fixes some weird travis failures noted on master and in #236

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  • Loading branch information...
1 parent b3899f1 commit ba482a558177aedd49883cbd3d4ebfa86e4c9ee7 @samphippen samphippen committed Apr 10, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/rspec/expectations/differ.rb
@@ -16,6 +16,9 @@ def diff_as_string(input_data_new, input_data_old)
file_length_difference = 0
diffs.each do |piece|
begin
+ if data_old == []
+ data_old = [""]
+ end
hunk = Diff::LCS::Hunk.new(
data_old, data_new, piece, context_lines, file_length_difference
)

0 comments on commit ba482a5

Please sign in to comment.