Cucumber Features

Expand All

Collapse All

Feature: Filentory-cli works

features/filentory-cli.feature:3

Scenario: App just runs

  1. When I get help for "filentory-cli"
    methadone-1.8.0/lib/methadone/cucumber.rb:58
  2. Then the exit status should be 0
    aruba-0.6.1/lib/aruba/cucumber.rb:197
  3. And the banner should be present
    methadone-1.8.0/lib/methadone/cucumber.rb:78
  4. And there should be a one line summary of what the app does
    methadone-1.8.0/lib/methadone/cucumber.rb:109
  5. And the banner should document that this app takes options
    methadone-1.8.0/lib/methadone/cucumber.rb:82
  6. And the following options should be documented:
    methadone-1.8.0/lib/methadone/cucumber.rb:63
    --version
    --type
    --auth
  7. And the banner should document that this app's arguments are:
    methadone-1.8.0/lib/methadone/cucumber.rb:87
    name
    path
    server
    optional
features/filentory-cli.feature:18

Scenario: App prints JSON

  1. When I run "filentory-cli" for the test data
    features/step_definitions/filentory-cli_steps.rb:2
  2. Then I should get JSON as output
    features/step_definitions/filentory-cli_steps.rb:6
  3. And the "name" should be "testrun"
    features/step_definitions/filentory-cli_steps.rb:12
  4. And the "mediatype" should be "DVD"
    features/step_definitions/filentory-cli_steps.rb:12
  5. And there should be 4 entries in "files"
    features/step_definitions/filentory-cli_steps.rb:16
  6. And the first file should be placed in the root folder
    features/step_definitions/filentory-cli_steps.rb:20
  7. And the second file should be in the "folder"
    features/step_definitions/filentory-cli_steps.rb:27
  8. And the image file should have metadata
    features/step_definitions/filentory-cli_steps.rb:34
  9. And the video file should have metadata
    features/step_definitions/filentory-cli_steps.rb:43
features/filentory-cli.feature:29

Scenario: Sending data to server

  1. When I run "filentory-cli" with a server parameter
    features/step_definitions/filentory-cli_steps.rb:51
  2. Then I should get a message that the data was send successfully
    features/step_definitions/filentory-cli_steps.rb:55
features/filentory-cli.feature:33

Scenario: YAML file present while sending data to server

  1. When I run "filentory-cli" with a server parameter and a yaml file
    features/step_definitions/filentory-cli_steps.rb:67
  2. Then I should get a message that the data was send successfully
    features/step_definitions/filentory-cli_steps.rb:55
  3. And I should get a message that "mykey" was send with the JSON data
    features/step_definitions/filentory-cli_steps.rb:71
features/filentory-cli.feature:38

Scenario: Server does not exist

  1. When I run "filentory-cli" with the wrong server parameter
    features/step_definitions/filentory-cli_steps.rb:59
  2. Then I should get a message that the data could not be sent
    features/step_definitions/filentory-cli_steps.rb:63