Patch #1667 » test_default_tracker.patch
| test/fixtures/projects.yml (working copy) | ||
|---|---|---|
|
is_public: true
|
||
|
identifier: ecookbook
|
||
|
parent_id:
|
||
|
default_tracker_id: 2
|
||
|
projects_002:
|
||
|
created_on: 2006-07-19 19:14:19 +02:00
|
||
|
name: OnlineStore
|
||
| ... | ... | |
|
is_public: false
|
||
|
identifier: onlinestore
|
||
|
parent_id:
|
||
|
default_tracker_id:
|
||
|
projects_003:
|
||
|
created_on: 2006-07-19 19:15:21 +02:00
|
||
|
name: eCookbook Subproject 1
|
||
| ... | ... | |
|
is_public: true
|
||
|
identifier: subproject1
|
||
|
parent_id: 1
|
||
|
default_tracker_id:
|
||
|
projects_004:
|
||
|
created_on: 2006-07-19 19:15:51 +02:00
|
||
|
name: eCookbook Subproject 2
|
||
| ... | ... | |
|
is_public: true
|
||
|
identifier: subproject2
|
||
|
parent_id: 1
|
||
|
default_tracker_id:
|
||
|
projects_005:
|
||
|
created_on: 2006-07-19 19:15:51 +02:00
|
||
|
name: Private child of eCookbook
|
||
| ... | ... | |
|
is_public: false
|
||
|
identifier: private_child
|
||
|
parent_id: 1
|
||
|
default_tracker_id:
|
||
|
|
||
| test/functional/issues_controller_test.rb (working copy) | ||
|---|---|---|
|
|
||
|
issue = assigns(:issue)
|
||
|
assert_not_nil issue
|
||
|
assert_equal Project.find(1).trackers.first, issue.tracker
|
||
|
prj = Project.find(1)
|
||
|
assert_equal prj.trackers.find(prj.default_tracker_id), issue.tracker
|
||
|
end
|
||
|
|
||
|
def test_update_new_form
|
||