Sha256: b5fca814f49f59c7000906fa6464637a22ed1f4331daee5e8c2d03ef91d72526
Contents?: true
Size: 560 Bytes
Versions: 6
Compression:
Stored size: 560 Bytes
Contents
require 'spec_helper' describe 'a secure Grape API endpoint' do let(:endpoint) { '/grape_api/hello' } let(:params) {} let(:headers) {} describe 'GET request' do subject(:api_call) { get endpoint, params, headers } it_should_behave_like 'a warden authenticatable api' it_should_behave_like 'a token authenticatable api' end describe 'POST request' do subject(:api_call) { post endpoint, params, headers } it_should_behave_like 'a warden authenticatable api' it_should_behave_like 'a token authenticatable api' end end
Version data entries
6 entries across 6 versions & 1 rubygems