blob: 2bfa834cb256b234bcc7bb90be28c61a9e485066 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'spec_helper'
describe Zero::Request, '#post?' do
subject { Zero::Request.new(env) }
context "with a post request" do
let(:env) { EnvGenerator.post('/foo') }
its(:post?) { should be(true) }
end
context "with a get request" do
let(:env) { EnvGenerator.get('/foo') }
its(:post?) { should be(false) }
end
end
|