middleman/middleman-core/lib/middleman-core/step_definitions/middleman_steps.rb

18 lines
509 B
Ruby
Raw Normal View History

2011-11-30 07:26:01 +01:00
Then /^the file "([^\"]*)" has the contents$/ do |path, contents|
2011-12-31 21:56:17 +01:00
write_file(path, contents)
2011-11-30 07:26:01 +01:00
step %Q{the file "#{path}" did change}
end
2011-12-31 21:56:17 +01:00
Then /^the file "([^\"]*)" is removed$/ do |path|
step %Q{I remove the file "#{path}"}
step %Q{the file "#{path}" did delete}
end
2011-11-30 07:26:01 +01:00
Then /^the file "([^\"]*)" did change$/ do |path|
2014-07-06 01:44:04 +02:00
@server_inst.extensions[:file_watcher].api.did_change(path)
2011-12-31 21:56:17 +01:00
end
Then /^the file "([^\"]*)" did delete$/ do |path|
2014-07-06 01:44:04 +02:00
@server_inst.extensions[:file_watcher].api.did_delete(path)
end