Sha256: 6ec489f6c1b151e26c1176ce5bd9d48abc9563ed417ab78444e349be83a6f9cf

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

require 'integration_helper'
require 'mws/products'

class TestMultibyteQueries < IntegrationTest
  use 'Products'

  def test_posting_multibyte_queries_properly
    ret = clients.map do |client|
      res = client.list_matching_products(client.marketplace.id, 'félix guattari machinic eros')
      res.body.force_encoding 'UTF-8' if defined? Ox # Ox workaround
      res.parse
    end
    assert ret.map(&:to_s).join.include?('Félix')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-2.1.1 test/integration/internals/test_multibyte_queries.rb
peddler-2.1.0 test/integration/test_multibyte_queries.rb