From 1ef84a1d5b55304f1a6e365c944ecc1d222ab8e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ug=CC=A7is=20Ozols?= Date: Thu, 17 Oct 2013 08:32:11 +0300 Subject: Don't set tag_list on the post factory - it's not a required attribute. --- spec/models/refinery/blog/post_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'spec/models') diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb index cec6a2f..bc9de6e 100644 --- a/spec/models/refinery/blog/post_spec.rb +++ b/spec/models/refinery/blog/post_spec.rb @@ -42,8 +42,10 @@ module Refinery it "acts as taggable" do post.should respond_to(:tag_list) - #the factory has default tags, including 'chicago' - post.tag_list.should include("chicago") + post.tag_list = "refinery, cms" + post.save! + + post.tag_list.should include("refinery") end end -- cgit v1.2.3