It was initially added to allow reuse of aruba cucumber steps, using `must' instead of `should'. This is creating more harm than good, hence we remove it and implements all missing steps, using aruba API.
24 lines
641 B
Ruby
24 lines
641 B
Ruby
Given /^a remote directory named "([^"]+)"$/ do |path|
|
|
create_dir path
|
|
end
|
|
|
|
Given /^a remote file named "([^"]+)"$/ do |file_name|
|
|
write_file file_name, ''
|
|
end
|
|
|
|
Given /^a remote file named "([^"]+)" with "([^"]+)"$/ do |file_name, content|
|
|
write_file file_name, content
|
|
end
|
|
|
|
Then /^the remote directory "([^"]+)" must exists$/ do |path|
|
|
check_directory_presence [path], true
|
|
end
|
|
|
|
Then /^the remote file "([^"]+)" must contain "([^"]+)"$/ do |path, content|
|
|
check_file_content path, content, true
|
|
end
|
|
|
|
Then /^the remote file "([^"]+)" must contain exactly "([^"]+)"$/ do |path, content|
|
|
check_exact_file_content path, content
|
|
end
|