26 lines
569 B
Ruby
26 lines
569 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|
|
|
cd '.' do
|
|
with_environment do
|
|
@server_inst.files.did_change(path)
|
|
end
|
|
end
|
|
end
|
|
|
|
Then /^the file "([^\"]*)" did delete$/ do |path|
|
|
cd '.' do
|
|
with_environment do
|
|
@server_inst.files.did_delete(path)
|
|
end
|
|
end
|
|
end
|