aboutsummaryrefslogtreecommitdiffstats
path: root/features/category.feature
diff options
context:
space:
mode:
authorMichael Gall <michael@wakeless.net>2011-06-08 10:57:15 +1000
committerMichael Gall <michael@wakeless.net>2011-06-08 10:57:15 +1000
commit63ec02d44e3063c2c92e99f13fb7525660d25956 (patch)
treea97c14b4a4032824d7fefc26e3a187d00fe3ca21 /features/category.feature
parent5f31b50b61f6601a18f62a83f2a36a5a0452684c (diff)
downloadrefinerycms-blog-63ec02d44e3063c2c92e99f13fb7525660d25956.tar.gz
refinerycms-blog-63ec02d44e3063c2c92e99f13fb7525660d25956.tar.bz2
refinerycms-blog-63ec02d44e3063c2c92e99f13fb7525660d25956.zip
Add spec for blog post categories
Diffstat (limited to 'features/category.feature')
-rw-r--r--features/category.feature23
1 files changed, 23 insertions, 0 deletions
diff --git a/features/category.feature b/features/category.feature
new file mode 100644
index 0000000..14ec93e
--- /dev/null
+++ b/features/category.feature
@@ -0,0 +1,23 @@
+@blog @blog_categories
+Feature: Blog Post Categories
+ Blog posts can be assigned categories
+
+ Background:
+ Given I am a logged in refinery user
+ Given there is a category titled "Videos"
+
+ Scenario: The blog post new/edit form has category_list
+ When I am on the new blog post form
+ Then I should see "Tags"
+ Then I should see "Videos"
+
+ Scenario: The blog post new/edit form saves categories
+ When I am on the new blog post form
+ And I fill in "Title" with "This is my blog post"
+ And I fill in "blog_post_body" with "And I love it"
+ And I check "Videos"
+ And I press "Save"
+
+ Then there should be 1 blog post
+ And the blog post should have "1" category
+ And the blog post should have the category "Videos" \ No newline at end of file