diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 12:30:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 12:30:00 +0000 |
commit | 76ad136b2a46e626f398872a71fa04fa4ad29743 (patch) | |
tree | 1ab80de4388b2808f510520382af8d59801bf9e9 | |
parent | f29b57088ae0ddd85ec99b516c0980dde1dad8f8 (diff) | |
download | redmine-76ad136b2a46e626f398872a71fa04fa4ad29743.tar.gz redmine-76ad136b2a46e626f398872a71fa04fa4ad29743.zip |
#new is just fine.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8284 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index f6988b347..c98007790 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -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">¶</a></h1>| |