aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/request/put_spec.rb
blob: 937d90453809d9d26707b016790e071ea15276c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe Zero::Request, '#put?' do
  subject { Zero::Request.new(env) }

  context "with a put request" do
    let(:env) { EnvGenerator.put('/foo') }
    its(:put?) { should be(true) }
  end

  context "with a get request" do
    let(:env) { EnvGenerator.get('/foo') }
    its(:put?) { should be(false) }
  end
end