Sha256: 1f023af09aaf1113fdfcb41d9e90dab50dfb4082792f851ea478991f5ca51119
Contents?: true
Size: 722 Bytes
Versions: 68
Compression:
Stored size: 722 Bytes
Contents
require 'test_plugin_helper' module Queries class JobInvocationsQueryTest < GraphQLQueryTestCase let(:query) do <<-GRAPHQL query { jobInvocations { totalCount nodes { id jobCategory } } } GRAPHQL end let(:data) { result['data']['jobInvocations'] } setup do FactoryBot.create_list(:job_invocation, 2) end test 'should fetch job invocations' do assert_empty result['errors'] expected_count = JobInvocation.count assert_not_equal 0, expected_count assert_equal expected_count, data['totalCount'] assert_equal expected_count, data['nodes'].count end end end
Version data entries
68 entries across 68 versions & 1 rubygems