aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/refinery/blog/categories_spec.rb
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2013-06-27 09:25:19 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2013-06-27 09:25:19 +0300
commit7a76219d721d6e07a8b99dd3bbcfb87136d05052 (patch)
tree133c48dca98cd416eda5b9e185d28d5972cd7051 /spec/features/refinery/blog/categories_spec.rb
parenta8af874920fff981eb535d100d736f2a0017f266 (diff)
downloadrefinerycms-blog-7a76219d721d6e07a8b99dd3bbcfb87136d05052.tar.gz
refinerycms-blog-7a76219d721d6e07a8b99dd3bbcfb87136d05052.tar.bz2
refinerycms-blog-7a76219d721d6e07a8b99dd3bbcfb87136d05052.zip
Update specs due to recent Capybara/FactoryGirl upgrade.
Diffstat (limited to 'spec/features/refinery/blog/categories_spec.rb')
-rw-r--r--spec/features/refinery/blog/categories_spec.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/features/refinery/blog/categories_spec.rb b/spec/features/refinery/blog/categories_spec.rb
new file mode 100644
index 0000000..021dd94
--- /dev/null
+++ b/spec/features/refinery/blog/categories_spec.rb
@@ -0,0 +1,28 @@
+require "spec_helper"
+
+module Refinery
+ describe "BlogCategories" do
+ refinery_login_with :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")
+ 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)
+ page.should have_content("Refinery CMS blog post")
+ page.should have_content("Video Games")
+ end
+ end
+ end
+ end
+end