Add a test that breaks before r2967 (broken project wiki copy).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2968 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-10-25 10:11:06 +00:00
parent 9f12a14382
commit eecec44ed2
2 changed files with 8 additions and 3 deletions

View File

@ -55,4 +55,7 @@ enabled_modules_014:
name: issue_tracking
project_id: 5
id: 14
enabled_modules_015:
name: wiki
project_id: 2
id: 15

View File

@ -382,7 +382,7 @@ class ProjectTest < ActiveSupport::TestCase
@source_project = Project.find(2)
@project = Project.new(:name => 'Copy Test', :identifier => 'copy-test')
@project.trackers = @source_project.trackers
@project.enabled_modules = @source_project.enabled_modules
@project.enabled_module_names = @source_project.enabled_modules.collect(&:name)
end
should "copy issues" do
@ -456,7 +456,9 @@ class ProjectTest < ActiveSupport::TestCase
end
should "copy wiki" do
assert @project.copy(@source_project)
assert_difference 'Wiki.count' do
assert @project.copy(@source_project)
end
assert @project.wiki
assert_not_equal @source_project.wiki, @project.wiki