aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorPatrick Davey <patrick.davey@resolvedigital.co.nz>2013-10-18 14:18:41 +1300
committerPatrick Davey <patrick.davey@resolvedigital.co.nz>2013-10-18 14:18:41 +1300
commitc6f4616844fd2861c95fce383bdaefa1fbc5cf62 (patch)
treef1635c0f6dddaf9d5ddda54ab4af2d29ca4bbbb2 /spec
parent32bc0bb0e3adb0a3ce025724b51b7d413a554e27 (diff)
downloadrefinerycms-blog-c6f4616844fd2861c95fce383bdaefa1fbc5cf62.tar.gz
refinerycms-blog-c6f4616844fd2861c95fce383bdaefa1fbc5cf62.tar.bz2
refinerycms-blog-c6f4616844fd2861c95fce383bdaefa1fbc5cf62.zip
Explicitly setting tag list in tests
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/refinery/blog/controller_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/refinery/blog/controller_helper_spec.rb b/spec/helpers/refinery/blog/controller_helper_spec.rb
index 89eeaad..727e8b4 100644
--- a/spec/helpers/refinery/blog/controller_helper_spec.rb
+++ b/spec/helpers/refinery/blog/controller_helper_spec.rb
@@ -6,14 +6,14 @@ module Refinery
let(:tags) { helper.find_tags }
context "with draft posts" do
- let!(:blog_post) { FactoryGirl.create(:blog_post, :draft => true) }
+ let!(:blog_post) { FactoryGirl.create(:blog_post, :draft => true, :tag_list => "first, second" ) }
it "does not return tags" do
tags.should be_empty
end
end
context "with live posts" do
- let!(:blog_post) { FactoryGirl.create(:blog_post) }
+ let!(:blog_post) { FactoryGirl.create(:blog_post, :tag_list => "first, second" ) }
it "does not return tags" do
tags.should_not be_empty