File: mixlib_config.feature

package info (click to toggle)
ruby-mixlib-config 3.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 284 kB
  • sloc: ruby: 1,631; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Feature: Configure an application
  In order to make it trivial to configure an application
  As a Developer
  I want to utilize a simple configuration object
  
Scenario: Set a configuration option to a string
  Given a configuration class 'ConfigIt'
  When I set 'foo' to 'bar' in configuration class 'ConfigIt'
  Then config option 'foo' is 'bar'

Scenario: Set the same configuration option to different strings for two configuration classes
  Given a configuration class 'ConfigIt'
    And a configuration class 'ConfigItToo'
  When I set 'foo' to 'bar' in configuration class 'ConfigIt'
   And I set 'foo' to 'bar2' in configuration class 'ConfigItToo'
  Then in configuration class 'ConfigItToo' config option 'foo' is 'bar2' 
   And in configuration class 'ConfigIt' config option 'foo' is 'bar'
  
Scenario: Set a configuration option to an Array
  Given a configuration class 'ConfigIt'
  When I set 'foo' to:
    |key|
    |bar|
    |baz|
  Then an array is returned for 'foo'

Scenario: Set a configuration option from a file
  Given a configuration file 'bobo.config'
   When I load the configuration
   Then config option 'foo' is 'bar'
    And config option 'baz' is 'snarl'