Skip to content

Instantly share code, notes, and snippets.

@rainchen
Created October 26, 2009 15:21
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 rainchen/218732 to your computer and use it in GitHub Desktop.
Save rainchen/218732 to your computer and use it in GitHub Desktop.
Feature: Items in scheduled
As an singed up user
I want to manage my todos or projects which placed in scheduled
Background:
Given I am a confirmed user and signed in as "tom@iamtom.com" with password "iamtom"
Scenario: Move a new todo to Scheduled
When I create a todo "To meet David" on "" about "About trip planning"
And I drag todo "To meet David" to place Scheduled
Then I should see "Schedule"
When I fill in "Scheduled at" with the date "tomorrow"
And I fill in "Scheduled Action" with "move_to_today"
And I press "OK"
Then I should have 1 todos in "Scheduled"
And I should have 0 todos in "Today"
When I go to the todos scheduled page
Then I should see "To meet David"
When 1 days pass
Given the taks are updated
Then I should have 0 todos in "Scheduled"
And I should have 1 todos in "Today"
When I go to the todos today page
Then I should see "To meet David"
1 scenario (1 passed)
17 steps (17 passed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment