Skip to content

Instantly share code, notes, and snippets.

require 'mustache'
class Layout < Mustache
self.template = "Header
{{{yield}}}
Footer"
end
class Index < Mustache
self.template = "The Index."
@zombor
zombor / gist:3975854
Created October 29, 2012 19:17 — forked from Ikke/gist:3975851
Feature: Log time
In order to keep my time
As a developer
I need to be able to add log entries
Scenario: Add a single time entry
Given I am a developer
When I enter the following into my time log:
"""
12:00pm - 1:00pm
@zombor
zombor / gist:3976055
Created October 29, 2012 19:42 — forked from Ikke/gist:3975851
Feature: Log time
In order to keep my time
As a developer
I need to be able to add log entries
Scenario: Add a single time entry
Given I am a developer
When I enter the following into my time log:
"""
08:00 - 09:00 - Doing something
@zombor
zombor / gist:3996861
Created November 1, 2012 21:51 — forked from Ikke/gist:3996846
Feature List entries
In order to see what time I have logged
I want to get a list of entries for a particular day
Scenario: List all entries for a single day
Given the log contains the following entries:
| start_time | stop_time | description | date |
| 08:00 | 09:00 | A | 2012-10-31 |
| 08:00 | 09:00 | B | 2012-11-01 |
| 09:00 | 10:00 | C | 2012-11-01 |