Sha256: e98c01046d99870b85a706f970ead1d4b2fe37b4e6feb0bfd2438e7bf7e48a9c

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

Given 'a lockfile with:' do |content|
  steps %Q{
    Given a file named "#{'.'.to_lockfile_path}" with:
      """
      #{expand(content)}
      """
  }
end

Given 'I copy a new lockfile from another machine with:' do |content|
  steps %Q{
    Given a lockfile with:
      """
      #{content}
      """
  }
end

Given 'I delete the lockfile' do
  steps %Q{
    Given I remove the file "#{'.'.to_lockfile_path}"
  }
end

When 'I edit the lockfile as:' do |content|
  steps %Q{
    Given a lockfile with:
      """
      #{content}
      """
  }
end

Then /^(?:a|the) lockfile is (?:created|updated) with:$/ do |content|
  # For some reason, Cucumber drops the last newline from every docstring...
  steps %Q{
    Then the file "#{'.'.to_lockfile_path}" should contain exactly:
      """
      #{content == '' ? '' : expand(content) + "\n"}
      """
  }
end

Then /^(?:a|the) lockfile is (?:created|updated) and matches with:$/ do |content|
  check_file_content('.'.to_lockfile_path, /#{content}/, true)
end

Then /^(?:a|the) lockfile is not created$/ do
  steps %Q{
    Then a file named "#{'.'.to_lockfile_path}" should not exist
  }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vim-flavor-2.2.2 features/step_definitions/lockfile_steps.rb
vim-flavor-2.2.1 features/step_definitions/lockfile_steps.rb
vim-flavor-2.2.0 features/step_definitions/lockfile_steps.rb
vim-flavor-2.1.1 features/step_definitions/lockfile_steps.rb
vim-flavor-2.1.0 features/step_definitions/lockfile_steps.rb
vim-flavor-2.0.0 features/step_definitions/lockfile_steps.rb
vim-flavor-1.1.5 features/step_definitions/lockfile_steps.rb
vim-flavor-1.1.4 features/step_definitions/lockfile_steps.rb
vim-flavor-1.1.3 features/step_definitions/lockfile_steps.rb