Sha256: 7350105dfbb7455340efefdf073aa6416d3bee2117f8f4209234061a3ead666f
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
require 'test_helper' module GraphQL module Client module Query class QueryDocumentTest < Minitest::Test def setup @schema = GraphQLSchema.new(schema_fixture('schema.json')) end def test_new_creates_a_document_with_a_mutation_operation mutation_operation = MutationDocument.new(@schema) assert_equal mutation_operation, mutation_operation.document.operations['default'] assert_instance_of MutationOperation, mutation_operation end def test_new_yields_mutation_operation mutation_operation_object = nil mutation_operation = MutationDocument.new(@schema) do |q| mutation_operation_object = q end assert_equal mutation_operation_object, mutation_operation end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql_client-0.4.1 | test/graphql_client/query/mutation_document_test.rb |
graphql_client-0.3.3 | test/graphql_client/query/mutation_document_test.rb |