[#4181] Added a link to create a new Deliverable.

This commit is contained in:
Eric Davis
2010-06-23 15:02:52 -07:00
parent 2bb36cb550
commit 483fff4e97
4 changed files with 17 additions and 0 deletions
+12
View File
@@ -20,5 +20,17 @@ class ContractsShowTest < ActionController::IntegrationTest
end
end
should "have a link to create a new deliverable" do
visit_contracts_for_project(@project)
click_link @contract.id
assert_response :success
assert_select "a#new-deliverable", :text => /Add New/
click_link "Add New"
assert_response :success
assert_template 'deliverables/new'
assert_equal "/projects/main/contracts/#{@contract.id}/deliverables/new", current_url
end
should "show a list of deliverables for the contract"
end