Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds more values to linear point scale #6

Merged
merged 1 commit into from Jan 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/project.rb
Expand Up @@ -12,7 +12,7 @@ class Project < ActiveRecord::Base
POINT_SCALES = {
'fibonacci' => [0,1,2,3,5,8].freeze,
'powers_of_two' => [0,1,2,4,8].freeze,
'linear' => [0,1,2,3,4,5].freeze,
'linear' => [0,1,2,3,4,5,6,7,8,9,10].freeze,
}.freeze

validates_inclusion_of :point_scale, :in => POINT_SCALES.keys,
Expand Down
2 changes: 1 addition & 1 deletion spec/javascripts/models/project_spec.js
Expand Up @@ -258,7 +258,7 @@ describe('Project model', function() {
});

it("should return velocity", function() {
var doneIterations = _.map([1,2,3,4,5], function(i) {
var doneIterations = _.map([1,2,3,4,5,6,7,8,9,10], function(i) {
return {points: sinon.stub().returns(i)};
});
var doneIterationsStub = sinon.stub(this.project, 'doneIterations');
Expand Down