test/test_vacuum.rb in vacuum-1.1.0 vs test/test_vacuum.rb in vacuum-1.1.1

- old
+ new

@@ -33,6 +33,12 @@ req = Request.new req.configure(aws_access_key_id: 'key', aws_secret_access_key: 'secret', associate_tag: 'tag') res = req.item_lookup(query: {}, mock: true) refute_empty res.to_h end + + def test_force_encodes_body + res = Object.new + def res.body; String.new.force_encoding('ASCII-8BIT'); end + assert_equal 'UTF-8', Response.new(res).body.encoding.name + end end