Created
January 24, 2012 09:56
-
-
Save stim371/1669337 to your computer and use it in GitHub Desktop.
cucumber feature for testing site
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
Feature: Creating Repositories | |
In order to have repositories to solicit help on | |
As a user | |
I want to add my repositories | |
Background: | |
Given I am on the homepage | |
When I follow "New Repository" | |
Scenario: Creating a repository | |
And I fill in "Name" with "Uncoil" | |
And I fill in "Description" with "A description for Uncoil." | |
And I fill in "Code URL" with "https://github.com/stim371/uncoil" | |
And I press "Create Project" | |
Then I should be on the repository page for "Uncoil" | |
And I should see "Repository has been created." | |
Scenario: Creating a repository without a name | |
And I fill in "Name" with "" | |
And I fill in "Description" with "A description for Uncoil." | |
And I fill in "Code URL" with "https://github.com/stim371/uncoil" | |
And I press "Create Project" | |
Then I should see "Repository has not been created." | |
And I should see "Name can't be blank" | |
Scenario: Creating a repository without a url | |
And I fill in "Name" with "Uncoil" | |
And I fill in "Description" with "A description for Uncoil." | |
And I fill in "Code URL" with "" | |
And I press "Create Project" | |
Then I should see "Repository has not been created." | |
And I should see "Code URL can't be blank" | |
# list of sample tests for potential project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment