This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mustache' | |
class Layout < Mustache | |
self.template = "Header | |
{{{yield}}} | |
Footer" | |
end | |
class Index < Mustache | |
self.template = "The Index." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |