##// END OF EJS Templates
Converted a test to shoulda and added more checks for it's assignments....
Eric Davis -
r3247:778117fead2b
parent child
Show More
@@ -44,10 +44,21 class ReportsControllerTest < ActionController::TestCase
44 44
45 45 end
46 46
47 def test_issue_report
48 get :issue_report, :id => 1
49 assert_response :success
50 assert_template 'issue_report'
47 context "GET :issue_report without details" do
48 setup do
49 get :issue_report, :id => 1
50 end
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 62 end
52 63
53 64 def test_issue_report_details
General Comments 0
You need to be logged in to leave comments. Login now