Sha256: 31454abb3f6b1284e6b1349498e5bcbe349825f134c9bd1e286db2b0a11d8cf4

Contents?: true

Size: 1.71 KB

Versions: 8

Compression:

Stored size: 1.71 KB

Contents

Feature: Config Electric Eye
  In order to record cameras
  I want to easily setup cameras and other variables
  So we can just start and stop the recordings

  Scenario: Add camera
    When I successfully run `electric_eye -a Reception rtsp://user:passwd@192.168.0.100/live.sdp`
    Then the exit status should be 0
    And we should have a directory called "~/.electric_eye"
    And we should have a file called "~/.electric_eye/config.yml"
    And within the file "~/.electric_eye/config.yml" we should have the camera "Reception"
    And the stdout should contain "Camera added"

  Scenario: Remove camera
    Given I have a camera called "Reception"
    When I successfully run `electric_eye -r Reception`
    Then the exit status should be 0
    And within the file "~/.electric_eye/config.yml" we should no cameras
    And the stdout should contain "Camera removed"

  Scenario: List cameras
    Given I have a camera called "Reception"
    When I successfully run `electric_eye -l`
    Then the exit status should be 0
    And within the file "~/.electric_eye/config.yml" we should have the camera "Reception"
    And the stdout should contain "Cameras"
    And the stdout should contain "Reception"

  Scenario: Set duration
    When I successfully run `electric_eye -d 10`
    Then the exit status should be 0
    And within the file "~/.electric_eye/config.yml" we should have the duration "10"
    And the stdout should contain "Duration set to 10 seconds"

  Scenario: Set path
    When I successfully run `electric_eye -p '/data/recordings'`
    Then the exit status should be 0
    And within the file "~/.electric_eye/config.yml" we should have the path "/data/recordings"
    And the stdout should contain "Path set to /data/recordings"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
electric_eye-0.1.4 features/config.feature
electric_eye-0.1.3 features/config.feature
electric_eye-0.1.1 features/config.feature
electric_eye-0.1.0 features/config.feature
electric_eye-0.0.5 features/config.feature
electric_eye-0.0.3 features/config.feature
electric_eye-0.0.2 features/config.feature
electric_eye-0.0.1 features/config.feature