Sha256: 766f1897a2d5950d7d2cde01e65c1b341c402664a2190b8cd9ace1fdae07cbf9

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

require 'spec_helper'

describe 'A Secure Rails API endpoint' do
  let(:params) {}
  let(:headers) {}

  describe 'GET request' do
    subject(:api_call) { get '/rails_api/articles', 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

Version Path
g5_authenticatable_api-0.4.1 spec/requests/rails_api_spec.rb
g5_authenticatable_api-0.4.0 spec/requests/rails_api_spec.rb
g5_authenticatable_api-0.3.2 spec/requests/rails_api_spec.rb
g5_authenticatable_api-0.3.1 spec/requests/rails_api_spec.rb
g5_authenticatable_api-0.3.0 spec/requests/rails_api_spec.rb
g5_authenticatable_api-0.2.0 spec/requests/rails_api_spec.rb