diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-02-13 00:31:18 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-02-14 15:52:17 +0800 |
commit | 30918929ad079a591b85303d6662ec0a43c5df04 (patch) | |
tree | f35921b065d6d8a748768c2ec1bb05bbe401003b /spec | |
parent | 564b86a3145cd5f7eae8071ef244dc684bcd5031 (diff) | |
download | gitlab-ce-30918929ad079a591b85303d6662ec0a43c5df04.tar.gz |
Implement singular iid for IssuesResolver and ProjectType
Diffstat (limited to 'spec')
-rw-r--r-- | spec/graphql/resolvers/issues_resolver_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/graphql/resolvers/issues_resolver_spec.rb b/spec/graphql/resolvers/issues_resolver_spec.rb index 1a54ab540fc..66de372e9fe 100644 --- a/spec/graphql/resolvers/issues_resolver_spec.rb +++ b/spec/graphql/resolvers/issues_resolver_spec.rb @@ -33,6 +33,10 @@ describe Resolvers::IssuesResolver do expect(resolve_issues).to contain_exactly(issue, issue2) end + it 'finds a specific issue with iid' do + expect(resolve_issues(iid: issue.iid)).to contain_exactly(issue) + end + it 'finds a specific issue with iids' do expect(resolve_issues(iids: issue.iid)).to contain_exactly(issue) end |