From 3a82183563986d368e81b5c314e69f169805fd1f Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sun, 6 Jan 2013 20:24:39 +0100 Subject: Improve test structure Created folder spec/unit/zero and moved all unittest into this folder. --- spec/unit/zero/request/server/protocol_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/unit/zero/request/server/protocol_spec.rb (limited to 'spec/unit/zero/request/server/protocol_spec.rb') diff --git a/spec/unit/zero/request/server/protocol_spec.rb b/spec/unit/zero/request/server/protocol_spec.rb new file mode 100644 index 0000000..5aac149 --- /dev/null +++ b/spec/unit/zero/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 + -- cgit v1.2.3-70-g09d2