From b1e4fd00943a160f3eb6ce242463c0cc07a406fc Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Tue, 17 Jan 2012 16:56:03 +1300 Subject: Fixed namespacing for Refinery conventions. --- spec/requests/refinery/blog/categories_spec.rb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'spec/requests/refinery/blog/categories_spec.rb') 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") -- cgit v1.2.3