Patch #18059 » activities_controller_test.diff
test/functional/activities_controller_test.rb | ||
---|---|---|
19 | 19 | |
20 | 20 |
class ActivitiesControllerTest < ActionController::TestCase |
21 | 21 |
fixtures :projects, :trackers, :issue_statuses, :issues, |
22 |
:enumerations, :users, :issue_categories, |
|
23 |
:projects_trackers, |
|
24 |
:roles, |
|
25 |
:member_roles, |
|
26 |
:members, |
|
27 |
:groups_users, |
|
28 |
:enabled_modules, |
|
29 |
:journals, :journal_details |
|
22 |
:enumerations, :users, :issue_categories, |
|
23 |
:projects_trackers, |
|
24 |
:roles, |
|
25 |
:member_roles, |
|
26 |
:members, |
|
27 |
:groups_users, |
|
28 |
:enabled_modules, |
|
29 |
:journals, :journal_details |
|
30 | ||
31 | ||
32 |
def test_edit_issue_with_new_assigned |
|
33 |
issue = Project.find(1).issues.first |
|
34 |
issue.status_id = 5 |
|
35 |
issue.save |
|
36 |
get :index, :project_id => 1, :with_subprojects => 0 |
|
37 |
assert_not_nil assigns(:events_by_day) |
|
38 |
assert_equal css_select('#activity dl dt a')[0].to_s[29..102], "Bug #1 (#{IssueStatus.find(4).name}): Can't print recipes. Now assigned to:( #{User.find(2).name})" |
|
39 |
end |
|
40 |
|