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/request/server/port_spec.rb | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 spec/unit/request/server/port_spec.rb (limited to 'spec/unit/request/server/port_spec.rb') diff --git a/spec/unit/request/server/port_spec.rb b/spec/unit/request/server/port_spec.rb deleted file mode 100644 index 24f6b5c..0000000 --- a/spec/unit/request/server/port_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe Zero::Request::Server, '#port' do - subject { Zero::Request::Server.new(env) } - - context 'sets the port to the given value' do - let(:env) { EnvGenerator.get('/foo', {'SERVER_PORT' => 80}) } - its(:port) { should be(80) } - end - - context 'casts also the port to an integer, while setting it' do - let(:env) { EnvGenerator.get('/foo', {'SERVER_PORT' => '80'}) } - its(:port) { should be(80) } - end -end -- cgit v1.2.3-70-g09d2