Sha256: f6df245ec8220a425b1a5a48abff31a2a4a2065cc6b1dc06a0f2560fcff81ee6

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

Feature: Adhearsion App Generator
  In order to do development on new Adhearsion apps
  As an Adhearsion developer
  I want to generate an Adhearsion app

  Scenario: Generate application with valid layout
    When I run `ahn create path/somewhere`
    And I cd to "path/somewhere"
    Then the following directories should exist:
      | lib                   |
      | config                |
      | script                |

    And the following files should exist:
      | .gitignore            |
      | config/adhearsion.rb  |
      | config/environment.rb |
      | Gemfile               |
      | lib/simon_game.rb     |
      | script/ahn            |
      | README.md             |
      | Rakefile              |
      | Procfile              |

    And the file "config/adhearsion.rb" should contain each of these content parts:
    """
    Adhearsion.router
    Adhearsion.config
    logging.level
    config.punchblock
    """
    And the file "README.md" should contain each of these content parts:
    """
    Start your new app with
    AGI(agi
    """
    And the file "Rakefile" should contain "adhearsion/tasks"
    And the file "Gemfile" should contain each of these content parts:
    """
    source :rubygems
    gem 'adhearsion-asterisk'
    """
    And the file "lib/simon_game.rb" should contain "class SimonGame"
    And the file "script/ahn" should contain "require 'adhearsion'"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adhearsion-2.0.0.rc3 features/app_generator.feature
adhearsion-2.0.0.rc2 features/app_generator.feature
adhearsion-2.0.0.rc1 features/app_generator.feature
adhearsion-2.0.0.beta1 features/app_generator.feature
adhearsion-2.0.0.alpha3 features/app_generator.feature
adhearsion-2.0.0.alpha2 features/app_generator.feature