diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-06 11:51:38 -0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-07 09:15:46 +0100 |
commit | 0c286d54737f685caf7ec21320d43d8069f2001d (patch) | |
tree | 825407887c0f10a8e1f80989bef161d5427e7f5f | |
parent | 18607d6c88e820b927d90ca1d247a23a61be8c99 (diff) | |
download | gitlab-ce-0c286d54737f685caf7ec21320d43d8069f2001d.tar.gz |
Fix JSON Schema that validates data returned by board issues endpoint
-rw-r--r-- | spec/controllers/projects/boards/issues_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/issue.json | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/projects/boards/issues_controller_spec.rb b/spec/controllers/projects/boards/issues_controller_spec.rb index 566658b508d..0eebb5a4624 100644 --- a/spec/controllers/projects/boards/issues_controller_spec.rb +++ b/spec/controllers/projects/boards/issues_controller_spec.rb @@ -21,7 +21,7 @@ describe Projects::Boards::IssuesController do it 'returns issues that have the list label applied' do johndoe = create(:user, avatar: fixture_file_upload(File.join(Rails.root, 'spec/fixtures/dk.png'))) create(:labeled_issue, project: project, labels: [planning]) - create(:labeled_issue, project: project, labels: [development]) + create(:labeled_issue, project: project, labels: [development], due_date: Date.tomorrow) create(:labeled_issue, project: project, labels: [development], assignee: johndoe) list_issues user: user, list_id: list2 diff --git a/spec/fixtures/api/schemas/issue.json b/spec/fixtures/api/schemas/issue.json index 532ebb9640e..6de6618e475 100644 --- a/spec/fixtures/api/schemas/issue.json +++ b/spec/fixtures/api/schemas/issue.json @@ -9,6 +9,7 @@ "iid": { "type": "integer" }, "title": { "type": "string" }, "confidential": { "type": "boolean" }, + "due_date": { "type": ["date", "null"] }, "labels": { "type": "array", "items": { |