Sha256: 64cc1b314ea67f9f6bb4933b087b85877e4cb7d4f044b7119621c37f903df569

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

Given /^(.+) exists with(\w*) a newline at the end$/ do |file_name, no_newline|
  file_contents = get_file_contents(file_name)
  expect(file_contents).to_not be_nil

  if no_newline.empty?
    file_contents << "\n" unless file_contents[-1] == "\n"
  else
    file_contents[-1] = '' if file_contents[-1] == "\n"
  end

  write_file(file_name, file_contents)
end

Given /^my configuration file "([^"]*)" looks like:$/ do |file_name, string|
  write_file(file_name, string)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tailor-1.4.1 features/step_definitions/indentation_steps.rb