Sha256: e1c5dd28154d9b7140fbcb95abb9f1bf5e8654b3b1fe90b733ee7aaea50863de
Contents?: true
Size: 716 Bytes
Versions: 69
Compression:
Stored size: 716 Bytes
Contents
require 'test_helper' module Queries class JobInvocationQueryTest < GraphQLQueryTestCase let(:query) do <<-GRAPHQL query ( $id: String! ) { jobInvocation(id: $id) { id jobCategory } } GRAPHQL end let(:job_invocation) { FactoryBot.create(:job_invocation) } let(:global_id) { Foreman::GlobalId.for(job_invocation) } let(:variables) { { id: global_id } } let(:data) { result['data']['jobInvocation'] } test 'fetching job invocation attributes' do assert_empty result['errors'] assert_equal global_id, data['id'] assert_equal job_invocation.job_category, data['jobCategory'] end end end
Version data entries
69 entries across 69 versions & 1 rubygems