summaryrefslogtreecommitdiff
path: root/spec/models/milestone_spec.rb
diff options
context:
space:
mode:
authorXurxo Méndez Pérez <sonxurxo@smartgalapps.com>2017-11-18 19:22:11 +0100
committerXurxo Méndez Pérez <sonxurxo@smartgalapps.com>2017-11-18 19:30:32 +0100
commitb3a5abe4aedd1d4f4a22e01f1f5a5b6e146d6eec (patch)
tree73bf8f5b39fef018695bbdd6f7640ce45a572fd2 /spec/models/milestone_spec.rb
parent6675bab59944bf075579bfb84cb1dd26cada39e9 (diff)
downloadgitlab-ce-b3a5abe4aedd1d4f4a22e01f1f5a5b6e146d6eec.tar.gz
Changed validation error message on wrong milestone dates
Diffstat (limited to 'spec/models/milestone_spec.rb')
-rw-r--r--spec/models/milestone_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb
index 13e37fffa4e..47f4a792e5c 100644
--- a/spec/models/milestone_spec.rb
+++ b/spec/models/milestone_spec.rb
@@ -11,7 +11,7 @@ describe Milestone do
milestone = build(:milestone, start_date: Date.tomorrow, due_date: Date.yesterday)
expect(milestone).not_to be_valid
- expect(milestone.errors[:start_date]).to include("Can't be greater than due date")
+ expect(milestone.errors[:due_date]).to include("must be greater than start date")
end
end
end