aboutsummaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/category.feature23
-rw-r--r--features/step_definitions/category_steps.rb11
2 files changed, 0 insertions, 34 deletions
diff --git a/features/category.feature b/features/category.feature
deleted file mode 100644
index 6af1075..0000000
--- a/features/category.feature
+++ /dev/null
@@ -1,23 +0,0 @@
-@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
diff --git a/features/step_definitions/category_steps.rb b/features/step_definitions/category_steps.rb
deleted file mode 100644
index 3c197e2..0000000
--- a/features/step_definitions/category_steps.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-Given /^there is a category titled "([^"]*)"$/ do |title|
- @category = Factory.create(:blog_category, :title => title)
-end
-
-Then /^the blog post should have ([\d]*) categor[yies]{1,3}$/ do |num_category|
- ::Refinery::BlogPost.last.categories.count.should == num_category.to_i
-end
-
-Then /^the blog post should have the category "([^"]*)"$/ do |category|
- ::Refinery::BlogPost.last.categories.first.title.should == category
-end