|
|
@ -27,7 +27,10 @@ describe Issue do |
|
|
|
issue.should be_valid |
|
|
|
issue.should be_valid |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it 'allows values greater than 0' do |
|
|
|
it 'allows values greater than or equal to 0' do |
|
|
|
|
|
|
|
issue.story_points = '0' |
|
|
|
|
|
|
|
issue.should be_valid |
|
|
|
|
|
|
|
|
|
|
|
issue.story_points = '1' |
|
|
|
issue.story_points = '1' |
|
|
|
issue.should be_valid |
|
|
|
issue.should be_valid |
|
|
|
end |
|
|
|
end |
|
|
@ -42,14 +45,6 @@ describe Issue do |
|
|
|
issue.should_not be_valid |
|
|
|
issue.should_not be_valid |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it 'disallows 0 and negative values' do |
|
|
|
|
|
|
|
issue.story_points = '0' |
|
|
|
|
|
|
|
issue.should_not be_valid |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
issue.story_points = '-1' |
|
|
|
|
|
|
|
issue.should_not be_valid |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it 'disallows greater or equal than 10.000' do |
|
|
|
it 'disallows greater or equal than 10.000' do |
|
|
|
issue.story_points = '10000' |
|
|
|
issue.story_points = '10000' |
|
|
|
issue.should_not be_valid |
|
|
|
issue.should_not be_valid |
|
|
|