Sha256: 02058873106022225a4a560e9bd1c3c892503d0b811f558e28df18e4f2e064b4

Contents?: true

Size: 456 Bytes

Versions: 29

Compression:

Stored size: 456 Bytes

Contents

shared_context 'API v2 serializers params' do
  let(:store) { Spree::Store.default || create(:store, default: true) }
  let(:currency) { store.default_currency }
  let(:locale) { store.default_locale }
  let(:zone) { Spree::Zone.default_tax || create(:zone, default_tax: true) }

  let(:serializer_params) do
    {
      store: store,
      currency: currency,
      user: nil,
      locale: locale,
      price_options: { tax_zone: zone }
    }
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
spree_api-4.10.1 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.10.0 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.9.0 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.8.3 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.8.2 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.7.3 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.6 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.5.5 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.4.1 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.5.4 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.5 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.7.2 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.7.1 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.4 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.7.0 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.3 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.2 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.1 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.6.0 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.5.3 lib/spree/api/testing_support/v2/serializers_params.rb