Project

General

Profile

Patch #15420 » wikis.patch

George Gensure, 2013-11-21 17:33

View differences:

test/unit/user_test.rb
309 309
    wiki_content = WikiContent.create!(
310 310
      :text => 'foo',
311 311
      :author_id => 2,
312
      :page => WikiPage.create!(:title => 'Foo', :wiki => Wiki.create!(:project_id => 1, :start_page => 'Start'))
312
      :page => WikiPage.create!(:title => 'Foo', :wiki => Wiki.create!(:project_id => 3, :start_page => 'Start'))
313 313
    )
314 314
    wiki_content.text = 'bar'
315 315
    assert_difference 'WikiContent::Version.count' do
test/unit/wiki_test.rb
23 23
  fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
24 24
  def test_create
25
    wiki = Wiki.new(:project => Project.find(2))
25
    wiki = Wiki.new(:project => Project.find(3))
26 26
    assert !wiki.save
27 27
    assert_equal 1, wiki.errors.count
(2-2/2)