test/integration/test_multibyte_queries.rb in peddler-1.6.7 vs test/integration/test_multibyte_queries.rb in peddler-2.0.0
- old
+ new
@@ -6,10 +6,10 @@
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 = 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