Add new cucumber remote steps

This commit is contained in:
Thibault Jouan 2015-04-05 02:34:33 +00:00
parent 1143c5d7cb
commit 088a948763

View File

@ -20,6 +20,10 @@ Then /^the remote directory "([^"]+)" must exist$/ do |path|
check_directory_presence [path], true
end
Then /^the remote file "([^"]+)" must exist$/ do |path|
check_file_presence [path], true
end
Then /^the remote file "([^"]+)" must contain "([^"]+)"$/ do |path, content|
check_file_content path, content, true
end
@ -28,6 +32,10 @@ Then /^the remote file "([^"]+)" must contain exactly "([^"]+)"$/ do |path, cont
check_file_content path, content
end
Then /^the remote file "([^"]+)" must contain exactly:$/ do |path, content|
check_file_content path, content
end
Then /^the remote file "([^"]+)" must match \/([^\/]+)\/$/ do |path, pattern|
check_file_content path, /#{pattern}/, true
end