summaryrefslogtreecommitdiff
path: root/app/models/concerns/milestoneish.rb
diff options
context:
space:
mode:
authorArinde Eniola <eniolaarinde1@gmail.com>2016-04-26 12:22:52 +0100
committerArinde Eniola <eniolaarinde1@gmail.com>2016-04-29 10:15:49 +0100
commitded3b02f3353708386d6960c5c146bf2a2de86db (patch)
treedff35fb04ff0565c09eeda4f4ca25b0bdccadb65 /app/models/concerns/milestoneish.rb
parent10f84f99cb663faae37139495f547bb68bd8aced (diff)
downloadgitlab-ce-ded3b02f3353708386d6960c5c146bf2a2de86db.tar.gz
Use a better message when milestone is newly createdchange_message_for_newly_created_milestone
make some changes for the checks to determine when the messages should be displayed add item to changelog and also integration test make some changes to the test make some changes
Diffstat (limited to 'app/models/concerns/milestoneish.rb')
-rw-r--r--app/models/concerns/milestoneish.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/milestoneish.rb b/app/models/concerns/milestoneish.rb
index 5b8e3f654ea..7bcc78247ba 100644
--- a/app/models/concerns/milestoneish.rb
+++ b/app/models/concerns/milestoneish.rb
@@ -8,7 +8,7 @@ module Milestoneish
end
def complete?(user = nil)
- total_items_count(user) == closed_items_count(user)
+ total_items_count(user) > 0 && total_items_count(user) == closed_items_count(user)
end
def percent_complete(user = nil)