]> source.dussan.org Git - redmine.git/commitdiff
#new is just fine.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 18 Dec 2011 12:30:00 +0000 (12:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 18 Dec 2011 12:30:00 +0000 (12:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8284 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index f6988b347d06ba9b494809578b47a2cd84b239dc..c980077905d608eb89f5d2d267d7bba88a4537ab 100644 (file)
@@ -702,8 +702,8 @@ EXPECTED
   end
 
   def test_headings_in_wiki_single_page_export_should_be_prepended_with_page_title
-    page = WikiPage.generate!( :title => 'Page Title' )
-    content = WikiContent.generate!( :text => 'h1. Some heading', :page => page )
+    page = WikiPage.new( :title => 'Page Title', :wiki_id => 1 )
+    content = WikiContent.new( :text => 'h1. Some heading', :page => page )
 
     expected = %|<a name="Page_Title_Some-heading"></a>\n<h1 >Some heading<a href="#Page_Title_Some-heading" class="wiki-anchor">&para;</a></h1>|