diff options
Diffstat (limited to 'spec/unit/request/server/protocol_spec.rb')
-rw-r--r-- | spec/unit/request/server/protocol_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/request/server/protocol_spec.rb b/spec/unit/request/server/protocol_spec.rb new file mode 100644 index 0000000..5aac149 --- /dev/null +++ b/spec/unit/request/server/protocol_spec.rb @@ -0,0 +1,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 + |