0
0
zero/spec/unit/zero/request/get_spec.rb
Stormwind 3a82183563 Improve test structure
Created folder spec/unit/zero and moved all unittest into this folder.
2013-01-06 20:24:39 +01:00

16 lines
340 B
Ruby

require 'spec_helper'
describe Zero::Request, '#get?' 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