@@ -44,10 +44,21 class ReportsControllerTest < ActionController::TestCase | |||||
44 |
|
44 | |||
45 | end |
|
45 | end | |
46 |
|
46 | |||
47 | def test_issue_report |
|
47 | context "GET :issue_report without details" do | |
|
48 | setup do | |||
48 | get :issue_report, :id => 1 |
|
49 | get :issue_report, :id => 1 | |
49 | assert_response :success |
|
50 | end | |
50 | assert_template 'issue_report' |
|
51 | ||
|
52 | should_respond_with :success | |||
|
53 | should_render_template :issue_report | |||
|
54 | ||||
|
55 | [:issues_by_tracker, :issues_by_version, :issues_by_category, :issues_by_assigned_to, | |||
|
56 | :issues_by_author, :issues_by_subproject].each do |ivar| | |||
|
57 | should_assign_to ivar | |||
|
58 | should "set a value for #{ivar}" do | |||
|
59 | assert assigns[ivar.to_s].present? | |||
|
60 | end | |||
|
61 | end | |||
51 | end |
|
62 | end | |
52 |
|
63 | |||
53 | def test_issue_report_details |
|
64 | def test_issue_report_details |
General Comments 0
You need to be logged in to leave comments.
Login now