Sha256: da2cf65f2c5142ed49c555feed7e38976885317e974e4a3be17c87fdea9bb42a

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

require 'integration_helper'
require 'mws/products'

class TestMultibyteQueries < IntegrationTest
  def setup
    @api = 'Products'
    super
  end

  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.3 test/integration/test_multibyte_queries.rb
peddler-1.6.2 test/integration/test_multibyte_queries.rb
peddler-1.6.1 test/integration/test_multibyte_queries.rb
peddler-1.6.0 test/integration/test_multibyte_queries.rb