0
0
zero/spec/unit/zero/request/patch_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
348 B
Ruby

require 'spec_helper'
describe Zero::Request, '#patch?' do
subject { Zero::Request.new(env) }
context "with a patch request" do
let(:env) { EnvGenerator.patch('/foo') }
its(:patch?) { should be(true) }
end
context "with a get request" do
let(:env) { EnvGenerator.get('/foo') }
its(:patch?) { should be(false) }
end
end