Sha256: 05ce183b0f20a1a9006db0b9b973b2ed99a83b57f81ae14aaec4f94632ce3f2c
Contents?: true
Size: 705 Bytes
Versions: 12
Compression:
Stored size: 705 Bytes
Contents
RSpec.describe Evil::Client::Formatter::Multipart do subject { described_class.call(*parts, boundary: "foobar") } let(:parts) { [string_io, string] } let(:string_io) { StringIO.new "Hola!" } let(:string) { "Hello!" } it "converts values to multipart body" do expect(subject).to eq \ "\r\n\r\n" \ "--foobar\r\n" \ "Content-Disposition: form-data; name=\"Part1\"\r\n" \ "Content-Type: text/plain; charset=utf-8\r\n" \ "\r\n" \ "Hola!\r\n" \ "--foobar\r\n" \ "Content-Disposition: form-data; name=\"Part2\"\r\n" \ "Content-Type: text/plain; charset=utf-8\r\n" \ "\r\n" \ "Hello!\r\n" \ "--foobar--\r\n" end end
Version data entries
12 entries across 12 versions & 1 rubygems