This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jürgen Brüder
committed
Sep 30, 2015
1 parent
aaf06c2
commit 42de4d0
Showing
21 changed files
with
199 additions
and
208 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
*.sqlite3 | ||
*.sqlite3 | ||
Gemfile.lock |
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
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
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
4 changes: 2 additions & 2 deletions
4
db/migrate/20140609093929_create_post.rb → db/migrate/20140609093929_create_article.rb
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
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
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,44 @@ | ||
Feature: Article | ||
|
||
Background: | ||
Given I have an article titled "An article about coffee" with the text "Lorem ipsum dolor samet" | ||
|
||
Scenario: Accessing new article form | ||
Given I am on the home page | ||
When I follow "Create new article" | ||
Then I should be on the create new article page | ||
And I should see "New article" | ||
|
||
Scenario: Creating an article | ||
Given I am on the create new article page | ||
When I fill in "article_title" with "My article title" | ||
And I fill in "article_text" with "Lorem ipsum dolor samet" | ||
And I press "Save" | ||
Then I should be on the home page | ||
And I should see "My article title" | ||
|
||
Scenario: Showing an article | ||
Given I am on the home page | ||
When I follow "An article about coffee" | ||
Then I should see "An article about coffee" | ||
And I should see "Lorem ipsum dolor samet" | ||
|
||
Scenario: Editing an article | ||
Given I am on the home page | ||
When I follow "Edit" | ||
Then I should see "Edit - An article about coffee" | ||
And I should see "Lorem ipsum dolor samet" | ||
When I fill in "article_title" with "An article about Red Bull" | ||
And I press "Update" | ||
Then I should be on the home page | ||
And I should see "An article about Red Bull" | ||
|
||
Scenario: Deleting an article | ||
Given I am editing an article titled "An article about coffee" | ||
When I press "Delete" | ||
Then I should be on the home page | ||
And I should not see "My new article title" | ||
|
||
Scenario: Show the number of characters used in article | ||
Given I am on the home page | ||
Then I should see the number of characters of the article displayed |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.