middleman/middleman-core/lib/middleman-core/step_definitions/middleman_steps.rb
2014-07-05 16:44:04 -07:00

18 lines
509 B
Ruby

Then /^the file "([^\"]*)" has the contents$/ do |path, contents|
write_file(path, contents)
step %Q{the file "#{path}" did change}
end
Then /^the file "([^\"]*)" is removed$/ do |path|
step %Q{I remove the file "#{path}"}
step %Q{the file "#{path}" did delete}
end
Then /^the file "([^\"]*)" did change$/ do |path|
@server_inst.extensions[:file_watcher].api.did_change(path)
end
Then /^the file "([^\"]*)" did delete$/ do |path|
@server_inst.extensions[:file_watcher].api.did_delete(path)
end