features/cli_create.feature in adhearsion-2.6.4 vs features/cli_create.feature in adhearsion-3.0.0.beta1
- old
+ new
@@ -5,26 +5,32 @@
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:
+ | app/assets/audio |
+ | app/assets/audio/en |
| app/call_controllers |
| lib |
| config |
+ | config/locales |
| script |
| spec |
| spec/call_controllers |
| spec/support |
And the following files should exist:
| .gitignore |
| .rspec |
+ | app/assets/audio/en/hello_world.wav |
| app/call_controllers/simon_game.rb |
| config/adhearsion.rb |
| config/environment.rb |
| config/events.rb |
| config/routes.rb |
+ | config/locales/en.yml |
+ | config.ru |
| Gemfile |
| script/ahn |
| spec/spec_helper.rb |
| spec/call_controllers/simon_game_spec.rb |
| README.md |
@@ -33,41 +39,48 @@
And the file "config/adhearsion.rb" should contain each of these content parts:
"""
Adhearsion.config
logging.level
- config.punchblock
+ config.core.username
"""
And the file "config/events.rb" should contain each of these content parts:
"""
Adhearsion::Events.draw do
"""
And the file "config/routes.rb" should contain each of these content parts:
"""
Adhearsion.router
"""
+ And the file "config.ru" should contain each of these content parts:
+ """
+ run Sinatra::Application
+ """
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 'https://rubygems.org
- gem 'adhearsion-asr'
+ source 'https://rubygems.org'
+ gem 'adhearsion'
"""
And the file "app/call_controllers/simon_game.rb" should contain "class SimonGame"
And the file "script/ahn" should contain "require 'adhearsion'"
+ And the file "config/locales/en.yml" should contain "en:"
Scenario: Generate application --empty
When I run `ahn create path/somewhere --empty`
And I cd to "path/somewhere"
Then the following directories should exist:
+ | app/assets/audio |
| app/call_controllers |
| lib |
| config |
+ | config/locales |
| script |
| spec |
| spec/call_controllers |
| spec/support |
@@ -76,18 +89,21 @@
| .rspec |
| config/adhearsion.rb |
| config/environment.rb |
| config/events.rb |
| config/routes.rb |
+ | config.ru |
| Gemfile |
| script/ahn |
| spec/spec_helper.rb |
| README.md |
| Rakefile |
| Procfile |
And the following files should not exist:
+ | app/assets/audio/en/hello_world.wav |
| app/call_controllers/simon_game.rb |
+ | config/locales/en.yml |
| spec/call_controllers/simon_game_spec.rb |
And the file "config/events.rb" should not contain each of these content parts:
"""
# Register global handlers for events