Skip to content

Instantly share code, notes, and snippets.

@tansaku
Created November 15, 2012 14:26
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 tansaku/4078862 to your computer and use it in GitHub Desktop.
Save tansaku/4078862 to your computer and use it in GitHub Desktop.
Display Assignment Status Prominently feature
Feature: display assignment status prominently on homepage
As a busy student
So that I can quickly determine what outstanding assignments I have
And so that I can quickly submit assignments
I want the first thing I see to be the assignment management page
Background: assignments have been added to the database
Given the following assignments exist
| title | week | optional |
| introduction post | 1 | no |
| background questionnaire | 1 | no |
# need student table and submission table
# and logged in as some student?
And I am on the home page
Scenario: view outstanding assignments
I should see "You have completed the introduction post"
I should see "You have not completed the background questionnaire"
Scenario: submit an outstanding assignment
Given that I enter 'yes' into background_questionnaire textfield
And click submit
I should see "You have completed the background questionnaire"
#And I should see "view your submission"
#And I should see "edit your submission"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment