Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/rspec/expectations/differ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down