From 30918929ad079a591b85303d6662ec0a43c5df04 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 13 Feb 2019 00:31:18 +0800 Subject: Implement singular iid for IssuesResolver and ProjectType --- spec/graphql/resolvers/issues_resolver_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/graphql/resolvers/issues_resolver_spec.rb') 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 -- cgit v1.2.1