middleman/middleman-core/lib/middleman-core/step_definitions/middleman_steps.rb
2015-09-19 16:00:38 -07:00

12 lines
286 B
Ruby

Then /^the file "([^\"]*)" has the contents$/ do |path, contents|
File.write(File.expand_path(path), contents)
@server_inst.files.find_new_files!
end
Then /^the file "([^\"]*)" is removed$/ do |path|
File.delete(File.expand_path(path))
@server_inst.files.find_new_files!
end