Feature: Track Goals Background: Given an empty tracking database Scenario: No goals When I view "/admin/metry" Then the page should have "#goals" And the page should not have "#goals .goal" Scenario: Create a goal Given I view "/admin/metry" And I follow "New Goal" And I fill in "name" with "Cool goal" And I fill in "path" with "/goal" And I press "Create" Then I should be on "/admin/metry/" And the page should have "#goals .goal" Scenario: Goal count Given I add a goal named "My Goal" with path "/" And I view "/" When I view "/admin/metry" Then I should see "My Goal: 1 visits"