From a504db43e3e329d93aa4a09abcfbdbdec19ef39d Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 16 Sep 2020 17:37:39 +0200 Subject: [PATCH] tests for filtering by contributor type. #632 --- spec/graphql/types/dissertation_type_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/graphql/types/dissertation_type_spec.rb b/spec/graphql/types/dissertation_type_spec.rb index d80416940..4c3c65ecc 100644 --- a/spec/graphql/types/dissertation_type_spec.rb +++ b/spec/graphql/types/dissertation_type_spec.rb @@ -220,7 +220,7 @@ it "returns dissertations" do response = LupoSchema.execute(query).as_json - puts response + expect(response.dig("data", "dissertations", "totalCount")).to eq(3) expect(response.dig("data", "dissertations", "published")).to eq([{"count"=>3, "id"=>"2011", "title"=>"2011"}]) expect(response.dig("data", "dissertations", "nodes").length).to eq(3)