Created
March 1, 2011 11:50
-
-
Save timurvafin/849023 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Feature: Create a multichoice question | |
In order to qualify team members based on internal standards | |
As an Admin | |
I want to be able to create a multiple choice question pool to create standards tests | |
Background: | |
Given I am an authenticated user | |
And I am on the new question page | |
Scenario: Admin creates new question | |
When I fill in "Add new question" with "Truth is out there?" | |
And fill in "Any extra detail to add?" with "X-Files" | |
And attach the file "x-files-logo.jpg" to the question | |
And add "Yes, sure!" correct answer to the question | |
And add "Nope..." answer to the question | |
And fill in "Tags" with "x-files, truth" | |
And press "Create Question" | |
Then I should be on the questions page | |
And should see "Question was successfully created" | |
And the question should exist with question: "Truth is out there?", extra_details: "X-Files" | |
And the question should have 2 answers | |
And 1 question answers should exist with answer: "Yes, sure!", correct: true | |
And the question should have 1 attachments | |
And the question should have 2 tags | |
Scenario: Admin tries create new question without tags | |
When I fill in "Add new question" with "Truth is out there?" | |
And add "Yes, sure!" correct answer to the question | |
And press "Create Question" | |
Then I should be on the questions page | |
And I should see "can't be blank" error for "Tags" | |
And 0 questions should exist | |
Scenario: Admin tries create new question without answers | |
When I fill in "Add new question" with "Truth is out there?" | |
And fill in "Tags" with "x-files, truth" | |
And press "Create Question" | |
Then I should be on the questions page | |
And I should see "Answers can't be blank" | |
And 0 questions should exist | |
Scenario: Admin tries create new question without correct answer | |
When I fill in "Add new question" with "Truth is out there?" | |
And add "Yes, sure!" answer to the question | |
And fill in "Tags" with "x-files, truth" | |
And press "Create Question" | |
Then I should be on the questions page | |
And I should see "Correct answer can't be blank" | |
And 0 questions should exist | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment