Skip to content

Instantly share code, notes, and snippets.

View mwilden's full-sized avatar

Mark Wilden mwilden

View GitHub Profile
# Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
module Rails
class << self
def boot!
unless booted?
preinitialize
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
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