diff --git a/lib/stackup/differ.rb b/lib/stackup/differ.rb index 9607b4f..8e01fe5 100644 --- a/lib/stackup/differ.rb +++ b/lib/stackup/differ.rb @@ -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)