0
0
zero/spec/unit/request/put_spec.rb
2012-11-13 07:47:05 +01:00

16 lines
338 B
Ruby

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