From 95cb897c073eeb64f0faf3ea2537635759a6b27a Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 13 Nov 2012 07:53:27 +0100 Subject: added spec for #path --- spec/unit/request/path_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 spec/unit/request/path_spec.rb diff --git a/spec/unit/request/path_spec.rb b/spec/unit/request/path_spec.rb new file mode 100644 index 0000000..8484ba8 --- /dev/null +++ b/spec/unit/request/path_spec.rb @@ -0,0 +1,7 @@ +describe Zero::Request, '#path' do + subject { Zero::Request.new(env) } + let(:path) { '/foo' } + let(:env) { EnvGenerator.get(path) } + + its(:path) { should == path } +end -- cgit v1.2.3-70-g09d2