Feature: Delete user
  Scenario: Deleting connected user
    Given there is connected user "user"
    When user deletes "user"
    Then last response is "OK"
    And "user" has database file

  Scenario: Deleting connected user with cache
    Given there is connected user "user"
    When user deletes "user" with cache
    Then last response is "OK"
    And "user" does not have database file

  Scenario: Deleting connected user without database file
    Given there is connected user "user"
    And there is no database file for "user"
    When user deletes "user" with cache
    Then last response is "OK"

  Scenario: Deleting disconnected user
    Given there is disconnected user "user"
    When user deletes "user"
    Then last response is "OK"
    And "user" has database file

  Scenario: Deleting disconnected user with cache
    Given there is disconnected user "user"
    When user deletes "user" with cache
    Then last response is "OK"
    And "user" does not have database file

  Scenario: Deleting disconnected user without database file
    Given there is disconnected user "user"
    And there is no database file for "user"
    When user deletes "user" with cache
    Then last response is "OK"
