Sha256: 60706830ddf1390fe07447d47ab6d5030f629a5810289d3f731ad4bca50b6c49

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

Feature: Status page

  The status page displays whether the diagnostic checks
  have passed, gave a warning, or failed.

  There is also a title that gives an overall status of the
  checks.

  Scenario: View the status page
    When I go to the status page
    Then I should be on the status page

  Scenario: A simple passing diagnostic check
    Given a diagnostic check named "MySQLCheck" with the following statuses:
      | passed | warning | failed |
      | true   | false   | false  |
    When I go to the status page
    Then I should see a passed diagnostic check named "MySQLCheck"
    And should see "All Systems Operational" as the title

  Scenario: Diagnostic checks that contain one warning check
    Given a diagnostic check named "MySQLCheck" with the following statuses:
      | passed | warning | failed |
      | true   | false   | false  |
    Given a diagnostic check named "PostgreSQLCheck" with the following statuses:
      | passed | warning | failed |
      | false  | true    | false  |
    When I go to the status page
    Then I should see a passed diagnostic check named "MySQLCheck"
    And should see a warning diagnostic check named "PostgreSQLCheck"
    And should see "Experiencing Issues" as the title

  Scenario: Diagnostic checks that contain one failing check
    Given a diagnostic check named "MySQLCheck" with the following statuses:
      | passed | warning | failed |
      | true   | false   | false  |
    Given a diagnostic check named "PostgreSQLCheck" with the following statuses:
      | passed | warning | failed |
      | false  | false   | true   |
    When I go to the status page
    Then I should see a passed diagnostic check named "MySQLCheck"
    And should see a failed diagnostic check named "PostgreSQLCheck"
    And should see "System Failure" as the title

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
diagnostics-0.0.4 spec_rails/rails2/features/status_page.feature
diagnostics-0.0.3 spec_rails/rails2/features/status_page.feature