#new is just fine.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8284 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-18 12:30:00 +00:00
parent f29b57088a
commit 76ad136b2a
1 changed files with 2 additions and 2 deletions

View 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>|