aboutsummaryrefslogtreecommitdiffstats
path: root/spec/requests/refinery/blog/categories_spec.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-01-17 16:56:03 +1300
committerPhilip Arndt <parndt@gmail.com>2012-01-17 16:56:24 +1300
commitb1e4fd00943a160f3eb6ce242463c0cc07a406fc (patch)
tree07fb750aa580b63d39c23589997956bf3a03594d /spec/requests/refinery/blog/categories_spec.rb
parentb3a25c1b686d205fc6b8b409a8f90059ae6b934d (diff)
downloadrefinerycms-blog-b1e4fd00943a160f3eb6ce242463c0cc07a406fc.tar.gz
refinerycms-blog-b1e4fd00943a160f3eb6ce242463c0cc07a406fc.tar.bz2
refinerycms-blog-b1e4fd00943a160f3eb6ce242463c0cc07a406fc.zip
Fixed namespacing for Refinery conventions.
Diffstat (limited to 'spec/requests/refinery/blog/categories_spec.rb')
-rw-r--r--spec/requests/refinery/blog/categories_spec.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/spec/requests/refinery/blog/categories_spec.rb b/spec/requests/refinery/blog/categories_spec.rb
index 48a3417..022d251 100644
--- a/spec/requests/refinery/blog/categories_spec.rb
+++ b/spec/requests/refinery/blog/categories_spec.rb
@@ -3,18 +3,17 @@ require "spec_helper"
module Refinery
describe "BlogCategories" do
login_refinery_user
-
+
context "has one category and post" do
before(:each) do
- @blog_post = FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
- @blog_category = FactoryGirl.create(:blog_category, :title => "Video Games")
- @blog_post.categories << @blog_category
- @blog_post.save!
+ @post = FactoryGirl.create(:blog_post, :title => "Refinery CMS blog post")
+ @category = FactoryGirl.create(:blog_category, :title => "Video Games")
+ @post.categories << @category
+ @post.save!
end
-
+
describe "show categories blog posts" do
- before(:each) { visit blog_category_path(@blog_category) }
-
+ before(:each) { visit refinery_blog_category_path(@category) }
it "should displays categories blog posts" do
page.should have_content("Refinery CMS blog post")
page.should have_content("Video Games")