@vcr @timecop
Feature: Generate membership metrics

  In order to track the health of our membership model
  As a member of the commercial team
  I want to generate various important metrics for display on a dashboard
  
  Background:
    Given the following members exist in CapsuleCRM:
      | level     | 
      | sponsor   |
      | partner   |
      | partner   |
      | member    |
      | member    |
      | member    |
      | supporter |
      | supporter |
      | supporter |
      | supporter |
    And that time is frozen
  
  Scenario: Total number of members
    Then the following data should be stored in the "membership-count" metric
      """
      {
        "name": "membership-count",
        "time": "<%= @time.xmlschema %>",
        "value": 10,
      }
      """
    When the membership count job runs
Add membership count metric feature
Add membership count metric feature
