Skip to content

Instantly share code, notes, and snippets.

@goofballLogic
Last active March 26, 2021 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofballLogic/5dfd6ba9b510ececae9b3df5d0b2a48b to your computer and use it in GitHub Desktop.
Save goofballLogic/5dfd6ba9b510ececae9b3df5d0b2a48b to your computer and use it in GitHub Desktop.
Feature: Reading diary entries
As Doogie
I want to be able to review my previous diary entries in reverse chronological order
So that I can scan my recent thoughts easily
Scenario: The latest entry should be shown at the top
Given a test entry exists dated 1 month into the future
"""
Raymond and I have a lot in common.
We both have to face prejudice for what we are...
The difference is I won't be 17 forever.
"""
And a test entry exists dated 2 months into the future
"""
Getting away with a lie may be a good
magic trick...but honesty works wonders. Vinnie and I
started out in opposite directions and ended up at the
same place: the truth.
"""
And I have loaded the app
Then the latest test entry should be displayed as the first diary entry
And the diary entry should be formatted respecting line breaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment