[#6636] Add Users/Overhead table to the deliverable finance report

This commit is contained in:
Eric Davis
2011-10-13 11:30:25 -07:00
parent 084ab1dd96
commit f4fb025c13
2 changed files with 55 additions and 0 deletions

View File

@@ -137,5 +137,22 @@ class DeliverableFinancesShowTest < ActionController::IntegrationTest
end
end
should "render the overhead finances for each user for the deliverable" do
assert_select "table#deliverable-overhead-users" do
assert_select "tr" do
assert_select "td.overhead", :text => /#{@manager.name}/
assert_select "td.amount-cost.overhead", :text => /\$500/
assert_select "td.time-cost.overhead", :text => /5/
end
assert_select "tr.summary-row" do
assert_select "td.overhead", :text => /Totals/
assert_select "td.amount-cost.overhead", :text => /\$500/
assert_select "td.time-cost.overhead", :text => /5/
end
end
end
end
end