Created
October 27, 2009 15:33
-
-
Save rainchen/219642 to your computer and use it in GitHub Desktop.
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
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