Patch #1667 » test_default_tracker.patch
| test/fixtures/projects.yml (working copy) | ||
|---|---|---|
| 10 | 10 |
is_public: true |
| 11 | 11 |
identifier: ecookbook |
| 12 | 12 |
parent_id: |
| 13 |
default_tracker_id: 2 |
|
| 13 | 14 |
projects_002: |
| 14 | 15 |
created_on: 2006-07-19 19:14:19 +02:00 |
| 15 | 16 |
name: OnlineStore |
| ... | ... | |
| 21 | 22 |
is_public: false |
| 22 | 23 |
identifier: onlinestore |
| 23 | 24 |
parent_id: |
| 25 |
default_tracker_id: |
|
| 24 | 26 |
projects_003: |
| 25 | 27 |
created_on: 2006-07-19 19:15:21 +02:00 |
| 26 | 28 |
name: eCookbook Subproject 1 |
| ... | ... | |
| 32 | 34 |
is_public: true |
| 33 | 35 |
identifier: subproject1 |
| 34 | 36 |
parent_id: 1 |
| 37 |
default_tracker_id: |
|
| 35 | 38 |
projects_004: |
| 36 | 39 |
created_on: 2006-07-19 19:15:51 +02:00 |
| 37 | 40 |
name: eCookbook Subproject 2 |
| ... | ... | |
| 43 | 46 |
is_public: true |
| 44 | 47 |
identifier: subproject2 |
| 45 | 48 |
parent_id: 1 |
| 49 |
default_tracker_id: |
|
| 46 | 50 |
projects_005: |
| 47 | 51 |
created_on: 2006-07-19 19:15:51 +02:00 |
| 48 | 52 |
name: Private child of eCookbook |
| ... | ... | |
| 54 | 58 |
is_public: false |
| 55 | 59 |
identifier: private_child |
| 56 | 60 |
parent_id: 1 |
| 61 |
default_tracker_id: |
|
| 57 | 62 |
|
| test/functional/issues_controller_test.rb (working copy) | ||
|---|---|---|
| 182 | 182 |
|
| 183 | 183 |
issue = assigns(:issue) |
| 184 | 184 |
assert_not_nil issue |
| 185 |
assert_equal Project.find(1).trackers.first, issue.tracker |
|
| 185 |
prj = Project.find(1) |
|
| 186 |
assert_equal prj.trackers.find(prj.default_tracker_id), issue.tracker |
|
| 186 | 187 |
end |
| 187 | 188 |
|
| 188 | 189 |
def test_update_new_form |