Sha256: e6e4b20cc9d197bba50743b96e8e09ed05060e09bc67f722134c61a293653b69

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

Feature: Starting up an app with Empezar
  In order to have all common needs covered for when  
    developing a new app
  As a Ruby developer
  I want to have Empezar dealing with log, configuration and 
    command line parameters setup for me

@clean
Scenario: Very simple setup, no args
  Given the config file "config/main.yaml"
  """
  data: 90
  """
  When I start the runner
  Then I should have 'data' with value 90 in Configuration
  When I info "Hello World" in the Log
  Then I should see "Hello World" in blue in command line
  And I should see "Hello World" in the "log/main.log" file

@clean
Scenario: App with some arguments
  Given the config file "config/main.yaml"
  """
  data: 89
  client:
    host: localhost
    path: /
  """
  And the command line arguments
  """
  client.port:8080 more:34
  """
  When I start the runner
  Then I should have 'data' with value 89 in Configuration
  And I should have 'more' with value 34 in Configuration
  And I should have 8080 in 'port' in 'client'
  And I should have "localhost" in 'host' in 'client'
  And I should have "/" in 'path' in 'client'

@clean
Scenario: Arguments override config file
  Given the config file "config/main.yaml"
  """
  data: 70
  """
  And the command line arguments
  """
  data:89
  """
  When I start the runner
  Then I should have 'data' with value 89 in Configuration

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
empezar-0.4.1 features/starting_up.feature
empezar-0.4.0 features/starting_up.feature
empezar-0.3.1 features/starting_up.feature