Fixed API usage, projects are not releated to Deliverables. #1137

This commit is contained in:
Eric Davis
2008-05-23 18:17:05 -07:00
parent 50f0d02391
commit 1eb49e3c87
3 changed files with 15 additions and 14 deletions
@@ -17,6 +17,7 @@ describe DeliverablesController,"#index when logged in" do
Deliverable.stub!(:find).and_return([])
Project.should_receive(:find).with(@project.to_param).and_return(@project)
Project.should_receive(:find).with(@project.id).and_return(@project)
controller.stub!(:authorize).and_return(true)
end