Sha256: 5e28ab2e6db48bf0cf0e36e734042f5989bd583feedcb15650981e392c8c2847

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 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(:serializer_params) do
    {
      store: store,
      currency: currency,
      user: nil,
      locale: locale
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_api-4.3.3 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.3.2 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.3.1 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.3.0 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.3.0.rc3 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.3.0.rc2 lib/spree/api/testing_support/v2/serializers_params.rb
spree_api-4.3.0.rc1 lib/spree/api/testing_support/v2/serializers_params.rb