Sha256: f67321c18f8b3d6aa1a249fe2eb20e589d8861bd7145637ac47cd746fb31c247

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe_query :currentStore, query: :current_store, freeze_date: true do
  let!(:store) { create(:store, :with_defaults, mail_from_address: 'solidus_graphql_api@example.org') }

  before { Spree::Config.available_currencies = ::Money::Currency.first(2) }

  let(:query_context) { Hash[current_store: store] }

  field :currentStore do
    it { is_expected.to match_response(:current_store) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_graphql_api-0.3.1 spec/integration/queries/current_store_spec.rb
solidus_graphql_api-0.3.0 spec/integration/queries/current_store_spec.rb
solidus_graphql_api-0.2.0 spec/integration/queries/current_store_spec.rb