Sha256: 16c5b05d6e3a6443cb75753035dff82981ee41460dc48c7dd4fdf99d52f6b6cb
Contents?: true
Size: 426 Bytes
Versions: 19
Compression:
Stored size: 426 Bytes
Contents
require 'spec_helper' describe 'a secure Grape API' do subject(:api_call) { get '/api/secure_resource' } context 'with an authenticated user', :auth_request do it 'should be successful' do api_call expect(response).to be_http_ok end end context 'without an authenticated user' do it 'should be unauthorized' do api_call expect(response).to be_http_unauthorized end end end
Version data entries
19 entries across 19 versions & 1 rubygems