Skip to content

Instantly share code, notes, and snippets.

@rainchen
Created October 27, 2009 15:33
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/219642 to your computer and use it in GitHub Desktop.
Save rainchen/219642 to your computer and use it in GitHub Desktop.
Scenario: Move a project which have some todos to Scheduled
Given I create a project "Project A"
And I create todos "Todo A"
When I drag todo "Todo A" to project "Project A"
Then the todo "Todo A" should be placed in "Next"
When I drag project "Project A" 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 projects in "Scheduled"
And the "active?" of project "Project A" should be "false"
And the "scheduled_at" of project "Project A" should not be blank
And the todo "Todo A" should not belong to any place
When I go to the scheduled page
Then I should see "Project A"
When 1 days pass
Given the tasks are updated
Then I should have 0 projects in "Scheduled"
And I should have 1 projects in "Today"
When I go to the scheduled page
Then the "scheduled_at" of project "Project A" should be blank
And the "active?" of project "Project A" should be "true"
And the todo "Todo A" should be placed in "Today"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment