Sha256: e50286eaa704c7e14f5450d9b71ea0edaed23e814b38746f26b599d28ece7d94

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe SolidusGraphqlApi::Queries::Product::OptionTypesQuery do
  let(:product) { create(:product) }

  let!(:option_types) { create_list(:option_type, 2, products: [product]) }

  it { expect(described_class.new(product: product).call.sync).to match_array(option_types) }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_graphql_api-0.3.1 spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb
solidus_graphql_api-0.3.0 spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb
solidus_graphql_api-0.2.0 spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb
solidus_graphql_api-0.1.0 spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb