Sha256: a9436cbe66f9a855ec8d65f5c2447f1d1b914010e78c64f5f742a813963a449d
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true describe Grape::Endpoint do subject { Class.new(Grape::API) } def app subject end before do subject.namespace do params do requires :id, desc: 'Identifier.' end get ':id' do end end end context 'post' do it '405' do post '/something' expect(last_response.status).to eq 405 end end end
Version data entries
3 entries across 3 versions & 1 rubygems