Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace controller spec with Cucumber feature. [#54]
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: Sort events | ||
As a registered user | ||
I can sort the event list | ||
So I can view events in whichever order is most convenient for me | ||
|
||
Background: | ||
Given I am logged in | ||
And I am subscribed to "My Calendar" | ||
And the following events exist: | ||
| calendar | name | date | | ||
| the calendar | October | 2100-10-01 | | ||
| the calendar | June | 2100-06-01 | | ||
| the calendar | December | 2100-12-01 | | ||
And I am on the events page | ||
|
||
Scenario: Reverse chronological order | ||
When I follow "Date" | ||
Then I should see the following in order: | ||
| December | | ||
| October | | ||
| June | | ||
|
||
Scenario: Alphabetical order by name | ||
When I follow "Event" | ||
Then I should see the following in order: | ||
| December | | ||
| June | | ||
| October | | ||
|
||
Scenario: Reverse alphabetical order by name | ||
When I follow "Event" | ||
And I follow "Event" | ||
Then I should see the following in order: | ||
| October | | ||
| June | | ||
| December | |