Add new cucumber remote steps
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user