test sitemap removal
This commit is contained in:
parent
e496d228b0
commit
aee8e32524
2 changed files with 22 additions and 3 deletions
|
@ -5,11 +5,19 @@ Given /^a project at "([^\"]*)"$/ do |dirname|
|
|||
end
|
||||
|
||||
Then /^the file "([^\"]*)" has the contents$/ do |path, contents|
|
||||
file_path = File.expand_path(path, @target)
|
||||
File.open(file_path, 'w') { |f| f.write(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.file_did_change(path)
|
||||
end
|
||||
|
||||
Then /^the file "([^\"]*)" did delete$/ do |path|
|
||||
@server_inst.file_did_delete(path)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue