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:
parent
9f12a14382
commit
eecec44ed2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue