spec/lib/hyperion/headers_spec.rb in hyperion_http-0.1.6 vs spec/lib/hyperion/headers_spec.rb in hyperion_http-0.1.7

- old
+ new

@@ -49,9 +49,10 @@ describe '#format_for' do it 'returns the format for the given content type' do expect(format_for('application/json')).to eql :json expect(format_for('application/x-protobuf')).to eql :protobuf + expect(format_for('multipart/form-data; boundary=------------------------2b463b63688b28fa')).to eql Multipart.format end it 'raises an error if the content type is unknown' do expect{format_for('aaa/bbb')}.to raise_error end end