You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

filesystem_steps.rb 337 B

2 years ago
123456789101112131415
  1. Given('a directory named {string}') do |path|
  2. FileUtils.mkdir_p(path)
  3. end
  4. Given('a file named {string} with:') do |path, content|
  5. write_file(path, content)
  6. end
  7. Given('an empty file named {string}') do |path|
  8. write_file(path, '')
  9. end
  10. Then('a file named {string} should exist') do |path|
  11. expect(File.file?(path)).to be true
  12. end

No Description

Contributors (1)