0
0
Fork 0

added specs for #get?

This commit is contained in:
Gibheer 2012-11-12 20:33:28 +01:00
parent 7f8aab2e92
commit e56d74c140
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
require 'spec_helper'
describe Zero::Request do
subject { Zero::Request.new(env) }
context "with a get request" do
let(:env) { EnvGenerator.get('/foo') }
its(:get?) { should be(true) }
end
context "with a post request" do
let(:env) { EnvGenerator.post('/foo') }
its(:get?) { should be(false) }
end
end