Sha256: db8b2da557270828f3312cca4304d943ad41a7d57fbdd2488e3ca71fd870da6f

Contents?: true

Size: 807 Bytes

Versions: 12

Compression:

Stored size: 807 Bytes

Contents

Feature: Adhearsion controller generator
  In order to speed up development of an Adhearsion app
  As an Adhearsion developer
  I want to generate a controller and its tests

  Scenario: Generate a controller and a test file
    When I run `ahn create path/somewhere`
    And I cd to "path/somewhere"
    And I run `ahn generate controller TestController`
    Then the following directories should exist:
      | lib                           |
      | spec                          |

    And the following files should exist:
      | lib/test_controller.rb         |
      | spec/test_controller_spec.rb |

    And the file "lib/test_controller.rb" should contain "class TestController < Adhearsion::CallController"
    And the file "spec/test_controller_spec.rb" should contain "describe TestController"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
adhearsion-2.1.2 features/controller_generator.feature
adhearsion-2.1.1 features/controller_generator.feature
adhearsion-2.1.0 features/controller_generator.feature
adhearsion-2.0.1 features/controller_generator.feature
adhearsion-2.0.0 features/controller_generator.feature
adhearsion-2.0.0.rc5 features/controller_generator.feature
adhearsion-2.0.0.rc4 features/controller_generator.feature
adhearsion-2.0.0.rc3 features/controller_generator.feature
adhearsion-2.0.0.rc2 features/controller_generator.feature
adhearsion-2.0.0.rc1 features/controller_generator.feature
adhearsion-2.0.0.beta1 features/controller_generator.feature
adhearsion-2.0.0.alpha3 features/controller_generator.feature