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 = %|\n