Add new cucumber remote steps
This commit is contained in:
parent
1143c5d7cb
commit
088a948763
@ -20,6 +20,10 @@ Then /^the remote directory "([^"]+)" must exist$/ do |path|
|
|||||||
check_directory_presence [path], true
|
check_directory_presence [path], true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then /^the remote file "([^"]+)" must exist$/ do |path|
|
||||||
|
check_file_presence [path], true
|
||||||
|
end
|
||||||
|
|
||||||
Then /^the remote file "([^"]+)" must contain "([^"]+)"$/ do |path, content|
|
Then /^the remote file "([^"]+)" must contain "([^"]+)"$/ do |path, content|
|
||||||
check_file_content path, content, true
|
check_file_content path, content, true
|
||||||
end
|
end
|
||||||
@ -28,6 +32,10 @@ Then /^the remote file "([^"]+)" must contain exactly "([^"]+)"$/ do |path, cont
|
|||||||
check_file_content path, content
|
check_file_content path, content
|
||||||
end
|
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|
|
Then /^the remote file "([^"]+)" must match \/([^\/]+)\/$/ do |path, pattern|
|
||||||
check_file_content path, /#{pattern}/, true
|
check_file_content path, /#{pattern}/, true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user