Commit 778117fe authored by Eric Davis's avatar Eric Davis

Converted a test to shoulda and added more checks for it's assignments.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3361 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 39c58574
......@@ -44,10 +44,21 @@ class ReportsControllerTest < ActionController::TestCase
end
def test_issue_report
get :issue_report, :id => 1
assert_response :success
assert_template 'issue_report'
context "GET :issue_report without details" do
setup do
get :issue_report, :id => 1
end
should_respond_with :success
should_render_template :issue_report
[:issues_by_tracker, :issues_by_version, :issues_by_category, :issues_by_assigned_to,
:issues_by_author, :issues_by_subproject].each do |ivar|
should_assign_to ivar
should "set a value for #{ivar}" do
assert assigns[ivar.to_s].present?
end
end
end
def test_issue_report_details
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment