Skip to content

Instantly share code, notes, and snippets.

@mwilden
Created December 24, 2009 01:56

Revisions

  1. mwilden created this gist Dec 24, 2009.
    18 changes: 18 additions & 0 deletions view_quit_information.feature
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    Feature: Quitter sees information about his quit
    As someone who's quitting smoking
    I want to see information about my quit
    So that I'm motivated to stay quit
    Scenario: I quit smoking
    Given I quit smoking on 1/1/2008 8AM
    # 0.000763888888888889 cigarettes/second
    And I used to smoke 66 cigarettes a day
    # $0.2715/cigarette
    And a pack of cigarettes costs $5.43
    # 36,896,550 seconds
    And it's now 3/3/2009 9:02:30AM
    And I am on the main page
    Then I should see "It's now Tuesday, Mar 3, 2009 at 9:02 am"
    And I should see "You quit smoking on Tuesday, Jan 1, 2008 at 8:00 am"
    And I should see "You've been smoke-free for 1 year, 2 months, 2 days 01:02:30"
    And I should see "You've not smoked 28,184 cigarettes"
    And I should see "You've saved $9,588.99 (adjusted for inflation)"