added specs for #get?
This commit is contained in:
parent
7f8aab2e92
commit
e56d74c140
15
spec/unit/request/get_spec.rb
Normal file
15
spec/unit/request/get_spec.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user