summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-11-13 07:53:27 +0100
committerGibheer <gibheer@gmail.com>2012-11-13 07:53:27 +0100
commit95cb897c073eeb64f0faf3ea2537635759a6b27a (patch)
treea8bfa0cd59bfc94c774c9b142bae2d7657b681b9 /spec/unit
parent348ec5b74e289412067d0c10df337927242020ce (diff)
added spec for #path
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/request/path_spec.rb7
1 files changed, 7 insertions, 0 deletions
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