Sha256: c8adce128af7aa246e745b39210ef57b27e57e0e03b8f63875802388f6bcb6d2

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

require 'integration_helper'
require 'mws/products'

class TestMultibyteQueries < IntegrationTest
  use 'Products'

  def test_posts_multibyte_queries_properly
    ret = clients.map do |client|
      res = client.list_matching_products('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

4 entries across 4 versions & 1 rubygems

Version Path
peddler-1.6.7 test/integration/test_multibyte_queries.rb
peddler-1.6.6 test/integration/test_multibyte_queries.rb
peddler-1.6.5 test/integration/test_multibyte_queries.rb
peddler-1.6.4 test/integration/test_multibyte_queries.rb