From 6f8f36f01219ecaf682eea89d85404314b85e6d0 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Fri, 17 Jan 2014 18:04:31 +0000 Subject: [PATCH] cms-helper-tests: fix bug due to blog without profile --- test/unit/cms_helper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/cms_helper_test.rb b/test/unit/cms_helper_test.rb index cfc4d22..c20769a 100644 --- a/test/unit/cms_helper_test.rb +++ b/test/unit/cms_helper_test.rb @@ -17,7 +17,7 @@ class CmsHelperTest < ActiveSupport::TestCase should 'show custom options for blog' do CmsHelperTest.any_instance.stubs(:controller).returns(ActionController::Base.new) - result = options_for_article(Blog.new) + result = options_for_article(Blog.new(:profile => fast_create(Profile))) assert_tag_in_string result, :tag => 'input', :attributes => { :name => 'article[published]' , :type => "hidden", :value => "1" } assert_tag_in_string result, :tag => 'input', :attributes => { :name => "article[accept_comments]", :type => "hidden", :value => "0" } end -- libgit2 0.21.2