Sha256: bacaf386cda388d9c1a7ca089788d48cf8892166673bd8e9775fd52a44f7c41a
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe SolidusGraphqlApi::Queries::Taxon::ChildrenQuery do it do taxonomy = create(:taxonomy) root = taxonomy.root children = [ create(:taxon, name: "Taxon one", parent: root), create(:taxon, name: "Taxon two", parent: root) ] expect(described_class.new(taxon: root).call.sync).to match_array(children) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_graphql_api-0.3.1 | spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb |
solidus_graphql_api-0.3.0 | spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb |