Sha256: 3041fb72eba1713b2c364a3a22a01b2ae750ee8f8ed0c78cba1434101cea7904

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

Given(/^I have created the app "(.*?)" with pah$/) do |app_name|
  app_exists = File.directory?("tmp/aruba/#{app_name}")

  if app_exists
    steps %Q{
      Then a directory named "#{app_name}" should exist
    }
  else
    steps %Q{
      When I run `rm -rf #{app_name}`
      Then I run `pah #{app_name}` interactively
      And I type "n"
      Then the output should contain:
        """
        CONGRATS! INSTALLATION COMPLETE!
        """
      Then a directory named "#{app_name}" should exist
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pah-0.0.15 features/step_definitions/create_simple_app.rb