[#4181] Redirect DeliverablesController list and show to the Contract page.

This commit is contained in:
Eric Davis committed 2010-06-23 16:43:14 -07:00
1 parent d53f6bc021
commit 6efa89a93f
4 files changed
+47 -1

No files matched your search

@@ -0,0 +1,19 @@
require 'test_helper'
class DeliverablesShowTest < ActionController::IntegrationTest
include Redmine::I18n
def setup
@project = Project.generate!(:identifier => 'main')
@contract = Contract.generate!(:project => @project)
@manager = User.generate!
@deliverable = FixedDeliverable.generate!(:contract => @contract, :manager => @manager)
end
should "redirect to the contract page" do
visit "/projects/#{@project.identifier}/contracts/#{@contract.id}/deliverables/#{@deliverable.id}"
assert_response :success
assert_template 'contracts/show'
end
end