Sha256: 4cc14615bba7e33b75d40e0cb6203be959d179439782ad40e1f22ee6564ba072
Contents?: true
Size: 991 Bytes
Versions: 2
Compression:
Stored size: 991 Bytes
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 not created$/ do steps %Q{ Then a file named "#{'.'.to_lockfile_path}" should not exist } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vim-flavor-1.1.2 | features/step_definitions/lockfile_steps.rb |
vim-flavor-1.1.1 | features/step_definitions/lockfile_steps.rb |