blob: ae0d2dbdf7eb374c9f6d4aa5bad935b16eb6d888 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|