Sha256: 61b97a892a6c469ed77732bf57c5bac2c0867d42f9c5354a65d4a1ffd71d355b

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 Bytes

Contents

shared_context 'configuration' do
  let(:host)               { 'http://grape-apiary.apiary.io' }
  let(:name)               { 'some api v1' }
  let(:description)        { 'some blueprint description' }
  let(:resource_exclusion) { [:admin, :swagger_docs] }

  let(:request_headers) do
    [
      { 'Accept-Charset' => 'utf-8' },
      { 'Connection'     => 'keep-alive' },
      { 'Content-Type'   => 'application/json' }
    ]
  end

  let(:response_headers) do
    [
      { 'Content-Length' => '21685' },
      { 'Connection'     => 'keep-alive' },
      { 'Content-Type'   => 'application/json' }
    ]
  end

  let(:app) do
    def app
      SampleApi
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-apiary-0.0.2 spec/support/config_context.rb
grape-apiary-0.0.1 spec/support/config_context.rb