Commit 7ba12764fe6bd60d5c6763d8183974229235ba0c
1 parent
46ef775e
Exists in
master
and in
29 other branches
Fix test: do not pass articles without a profile
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/cms_helper_test.rb
... | ... | @@ -8,7 +8,7 @@ class CmsHelperTest < ActiveSupport::TestCase |
8 | 8 | |
9 | 9 | should 'show default options for article' do |
10 | 10 | CmsHelperTest.any_instance.stubs(:controller).returns(ActionController::Base.new) |
11 | - result = options_for_article(RssFeed.new) | |
11 | + result = options_for_article(RssFeed.new(:profile => Profile.new)) | |
12 | 12 | assert_match /id="article_published" name="article\[published\]" type="checkbox" value="1"/, result |
13 | 13 | assert_match /id="article_accept_comments" name="article\[accept_comments\]" type="checkbox" value="1"/, result |
14 | 14 | end | ... | ... |