Skip to content

Commit

Permalink
Merge pull request #63 from realestate-com-au/default-context-lines
Browse files Browse the repository at this point in the history
Don't set diffy context lines by default.
  • Loading branch information
mbelekar authored Nov 7, 2018
2 parents 8fadfc5 + 33bfb7b commit da47d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stackup/differ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(diff_style = :color, &data_formatter)

include Utils

def diff(existing_data, pending_data, context_lines)
def diff(existing_data, pending_data, context_lines = nil)
existing = format(normalize_data(existing_data)) + "\n"
pending = format(normalize_data(pending_data)) + "\n"
diff = Diffy::Diff.new(existing, pending, context: context_lines).to_s(diff_style)
Expand Down

0 comments on commit da47d69

Please sign in to comment.