Sha256: 5aee1178f23d9d389747d99d54751032ff1de5c60169a2995ac1e6c333567cbf
Contents?: true
Size: 643 Bytes
Versions: 7
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' require 'helpers/http_headers' describe Mirage::Server::Helpers::HttpHeaders do describe '#extract_http_headers' do it 'returns content-type' do helpers = Object.new helpers.extend(described_class) expected = {'CONTENT_TYPE' => 'application/json'} expect(helpers.extract_http_headers(expected)['Content-Type']).to eq('application/json') end it 'returns content-length' do helpers = Object.new helpers.extend(described_class) expected = {'CONTENT_LENGTH' => '10'} expect(helpers.extract_http_headers(expected)['Content-Length']).to eq('10') end end end
Version data entries
7 entries across 7 versions & 2 rubygems