diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-11-15 12:23:52 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-11-15 12:23:52 +0200 |
commit | 50c9adb1956e46d94f6975754acd1fef3fd9256a (patch) | |
tree | ab4f35fc9ce090c0e12685e910d08cbd95acbee1 /spec/requests/refinery | |
parent | a3de72ecb24c46a72ce46bd99d9eef16175867f5 (diff) | |
download | refinerycms-blog-50c9adb1956e46d94f6975754acd1fef3fd9256a.tar.gz refinerycms-blog-50c9adb1956e46d94f6975754acd1fef3fd9256a.tar.bz2 refinerycms-blog-50c9adb1956e46d94f6975754acd1fef3fd9256a.zip |
Add temp fix for one failing spec.
Diffstat (limited to 'spec/requests/refinery')
-rw-r--r-- | spec/requests/refinery/blog/posts_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/requests/refinery/blog/posts_spec.rb b/spec/requests/refinery/blog/posts_spec.rb index a414037..9be8618 100644 --- a/spec/requests/refinery/blog/posts_spec.rb +++ b/spec/requests/refinery/blog/posts_spec.rb @@ -157,7 +157,7 @@ module Refinery describe "#show draft preview" do let(:blog_post) { FactoryGirl.create(:blog_post_draft) } - + context "when logged in as admin" do it "should display the draft notification" do visit refinery.blog_post_path(blog_post) @@ -165,9 +165,12 @@ module Refinery page.should have_content('This page is NOT live for public viewing.') end end - + context "when not logged in as an admin" do - before do + before do + # TODO: remove Refinery::Pages::Engine.load_seed dependency. + # It's here to temporary fix the issue with 404 after visiting logout path. + Refinery::Pages::Engine.load_seed visit refinery.logout_path end |