summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-20 20:29:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-20 20:29:03 +0000
commit8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d (patch)
tree8318d86019c2000aa720c737b50e77a5aee8bce6 /test
parent987a5aa22114ec2e931464782351431e4dfec97c (diff)
downloadredmine-8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d.tar.gz
redmine-8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d.zip
Added per-project tracker selection. Trackers can be selected on project settings.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@920 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/projects_trackers.yml46
-rw-r--r--test/functional/projects_controller_test.rb2
-rw-r--r--test/unit/issue_test.rb2
3 files changed, 48 insertions, 2 deletions
diff --git a/test/fixtures/projects_trackers.yml b/test/fixtures/projects_trackers.yml
new file mode 100644
index 000000000..cfca5b228
--- /dev/null
+++ b/test/fixtures/projects_trackers.yml
@@ -0,0 +1,46 @@
+---
+projects_trackers_012:
+ project_id: 4
+ tracker_id: 3
+projects_trackers_001:
+ project_id: 1
+ tracker_id: 1
+projects_trackers_013:
+ project_id: 5
+ tracker_id: 1
+projects_trackers_002:
+ project_id: 1
+ tracker_id: 2
+projects_trackers_014:
+ project_id: 5
+ tracker_id: 2
+projects_trackers_003:
+ project_id: 1
+ tracker_id: 3
+projects_trackers_015:
+ project_id: 5
+ tracker_id: 3
+projects_trackers_004:
+ project_id: 2
+ tracker_id: 1
+projects_trackers_005:
+ project_id: 2
+ tracker_id: 2
+projects_trackers_006:
+ project_id: 2
+ tracker_id: 3
+projects_trackers_007:
+ project_id: 3
+ tracker_id: 1
+projects_trackers_008:
+ project_id: 3
+ tracker_id: 2
+projects_trackers_009:
+ project_id: 3
+ tracker_id: 3
+projects_trackers_010:
+ project_id: 4
+ tracker_id: 1
+projects_trackers_011:
+ project_id: 4
+ tracker_id: 2
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index e6c06cf56..c41adaa6c 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -22,7 +22,7 @@ require 'projects_controller'
class ProjectsController; def rescue_action(e) raise e end; end
class ProjectsControllerTest < Test::Unit::TestCase
- fixtures :projects, :users, :roles, :members, :issues, :journals, :journal_details, :trackers, :issue_statuses, :enabled_modules, :enumerations
+ fixtures :projects, :users, :roles, :members, :issues, :journals, :journal_details, :trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations
def setup
@controller = ProjectsController.new
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 6ffbe0a8b..da91dd02c 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -18,7 +18,7 @@
require File.dirname(__FILE__) + '/../test_helper'
class IssueTest < Test::Unit::TestCase
- fixtures :projects, :users, :members, :trackers, :issue_statuses, :issue_categories, :enumerations, :issues, :custom_fields, :custom_values, :time_entries
+ fixtures :projects, :users, :members, :trackers, :projects_trackers, :issue_statuses, :issue_categories, :enumerations, :issues, :custom_fields, :custom_values, :time_entries
def test_category_based_assignment
issue = Issue.create(:project_id => 1, :tracker_id => 1, :author_id => 3, :status_id => 1, :priority => Enumeration.get_values('IPRI').first, :subject => 'Assignment test', :description => 'Assignment test', :category_id => 1)