Skip to content

Commit

Permalink
Fix test on ruby-head.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 15, 2024
1 parent 89336da commit f30c038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/falcon/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
response = client.post("/", {'content-type' => 'application/x-www-form-urlencoded'}, ['hello=world'])

expect(response).to be(:success?)
expect(response.read).to be == 'POST: {"hello"=>"world"}'
expect(response.read).to be =~ /POST: {"hello"\s?=>\s?"world"}/
end

it "can POST multipart/form-data" do
response = client.post("/", {'content-type' => 'multipart/form-data; boundary=multipart'}, ["--multipart\r\n", "Content-Disposition: form-data; name=\"hello\"\r\n\r\n", "world\r\n", "--multipart--"])

expect(response).to be(:success?)
expect(response.read).to be == 'POST: {"hello"=>"world"}'
expect(response.read).to be =~ /POST: {"hello"\s?=>\s?"world"}/
end
end

Expand Down

0 comments on commit f30c038

Please sign in to comment.