Commit 6f8f36f01219ecaf682eea89d85404314b85e6d0

Authored by Rodrigo Souto
1 parent b1bcaade

cms-helper-tests: fix bug due to blog without profile

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/cms_helper_test.rb
... ... @@ -17,7 +17,7 @@ class CmsHelperTest < ActiveSupport::TestCase
17 17  
18 18 should 'show custom options for blog' do
19 19 CmsHelperTest.any_instance.stubs(:controller).returns(ActionController::Base.new)
20   - result = options_for_article(Blog.new)
  20 + result = options_for_article(Blog.new(:profile => fast_create(Profile)))
21 21 assert_tag_in_string result, :tag => 'input', :attributes => { :name => 'article[published]' , :type => "hidden", :value => "1" }
22 22 assert_tag_in_string result, :tag => 'input', :attributes => { :name => "article[accept_comments]", :type => "hidden", :value => "0" }
23 23 end
... ...