diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-11-20 11:34:07 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-11-20 11:34:07 +0000 |
commit | 419cffdb136d26f650169ef6086916883bee4a09 (patch) | |
tree | a774723059c97517c1a461c0f19fc2af7145757d /spec | |
parent | 6b3e81b4673ca8e29d9d771de2c56ed853729a76 (diff) | |
parent | b3a5abe4aedd1d4f4a22e01f1f5a5b6e146d6eec (diff) | |
download | gitlab-ce-419cffdb136d26f650169ef6086916883bee4a09.tar.gz |
Merge branch '38393-Milestone-duration-error-message-is-not-accurate-enough' into 'master'
Changed validation error message on wrong milestone dates
Closes #38393
See merge request gitlab-org/gitlab-ce!15471
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/milestone_spec.rb | 2 |
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 |