summaryrefslogtreecommitdiff
path: root/spec/unit/request/server/protocol_spec.rb
blob: 5aac14932a3ba13d1833f3736e665de3a854853d (plain) (blame)
1
2
3
4
5
6
7
8
9
require 'spec_helper'

describe Zero::Request::Server, '#protocol' do
  subject { Zero::Request::Server.new(env) }
  let(:protocol) { 'HTTP FOO' }
  let(:env) { EnvGenerator.get('/foo', {'SERVER_PROTOCOL' => protocol}) }
  its(:protocol) { should be(protocol) }
end