Module: RSpec::Support::Spec::DiffHelpers

Defined in:
lib/rspec/support/spec/diff_helpers.rb

Instance Method Summary collapse

Instance Method Details

#one_line_header(_ = 2) ⇒ Object



12
13
14
# File 'lib/rspec/support/spec/diff_helpers.rb', line 12

def one_line_header(line_number=2)
  "-1,#{line_number} +1,#{line_number}"
end

#removing_two_line_headerObject



22
23
24
# File 'lib/rspec/support/spec/diff_helpers.rb', line 22

def removing_two_line_header
  "-1,3 +1"
end