Updated deliverable.progress to return 100 if it has no issues. #1136
This commit is contained in:
1 parent
7e9e2759b8
commit
9e743932d1
2 files changed
+9
-2
No files matched your search
@@ -149,7 +149,14 @@ describe Deliverable, '.progress' do
|
||||
@deliverable.progress.should eql(66)
|
||||
end
|
||||
|
||||
it 'should return 100 if there are no assigned issues'
|
||||
it 'should return 100 if there are no assigned issues' do
|
||||
@deliverable = Deliverable.new({ :subject => 'test' })
|
||||
@deliverable.should_receive(:issues).and_return([])
|
||||
|
||||
@deliverable.progress.should eql(100)
|
||||
end
|
||||
|
||||
|
||||
it 'should not change when hours are clocked'
|
||||
it 'should change if issues are assigned'
|
||||
it 'should change if issues are unassigned'
|
||||
|
||||
Reference in new issue
Block a user