app_steps.rb 448 B

12345678910111213141516
  1. Given /^a new server$/ do
  2. end
  3. Then /^the "?(.+?)"? directory should exist$/ do |dir_name|
  4. @dir_name = dir_name
  5. assert File.directory?(dir_name), "File.directory?(#{dir_name}) = #{File.directory?(dir_name)}"
  6. end
  7. Then /^it should be owned by (.+?) with group (.+?)$/ do |owner, group|
  8. # TODO
  9. end
  10. Then /^"?(.+?)"? should be a symlink to "?(.+?)"$/ do |link, target|
  11. assert File.symlink?(link)
  12. assert_equal target, File.readlink(link)
  13. end