aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/refinery/blog/categories_spec.rb
diff options
context:
space:
mode:
authorBrice Sanchez <contact@brice-sanchez.com>2016-05-30 00:37:53 -0400
committerBrice Sanchez <contact@brice-sanchez.com>2016-05-30 22:17:42 -0400
commitb0019fd9acdf04292ff402e1b9d8528517ea7a63 (patch)
tree306fdd3ca18bca2b5fc38cd6916a5653676768ee /spec/features/refinery/blog/categories_spec.rb
parenteafbd3f3992dc735cbe8fe8efc8296a5c1dc2b78 (diff)
downloadrefinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.tar.gz
refinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.tar.bz2
refinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.zip
Fix specs
Diffstat (limited to 'spec/features/refinery/blog/categories_spec.rb')
-rw-r--r--spec/features/refinery/blog/categories_spec.rb38
1 files changed, 20 insertions, 18 deletions
diff --git a/spec/features/refinery/blog/categories_spec.rb b/spec/features/refinery/blog/categories_spec.rb
index b778254..1ffe29f 100644
--- a/spec/features/refinery/blog/categories_spec.rb
+++ b/spec/features/refinery/blog/categories_spec.rb
@@ -1,28 +1,30 @@
require "spec_helper"
module Refinery
- describe "BlogCategories", type: :feature do
- refinery_login_with :refinery_user
+ module Blog
+ describe Category, type: :feature do
+ refinery_login_with_devise :authentication_devise_refinery_user
- context "has one category and post" do
- before do
- post = Globalize.with_locale(:en) do
- FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
+ context "has one category and post" do
+ before do
+ post = Globalize.with_locale(:en) do
+ FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
+ end
+ @category = Globalize.with_locale(:en) do
+ FactoryGirl.create(:blog_category, :title => "Video Games")
+ end
+ post.categories << @category
+ post.save!
end
- @category = Globalize.with_locale(:en) do
- FactoryGirl.create(:blog_category, :title => "Video Games")
- end
- post.categories << @category
- post.save!
- end
- describe "show categories blog posts" do
- it "should displays categories blog posts" do
- visit refinery.blog_category_path(@category)
- expect(page).to have_content("Refinery CMS blog post")
- expect(page).to have_content("Video Games")
+ describe "show categories blog posts" do
+ it "should displays categories blog posts" do
+ visit refinery.blog_category_path(@category)
+ expect(page).to have_content("Refinery CMS blog post")
+ expect(page).to have_content("Video Games")
+ end
end
end
end
end
-end
+end \ No newline at end of file