Sha256: b283bdfc2b95870e0652a4bded05d1a6e247997aa927b313c1dfaa42ef0928be

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

# see https://github.com/ruby-grape/grape/issues/1348

require 'spec_helper'

def namespace
  fail
end

describe Grape::API do
  subject do
    Class.new(Grape::API) do
      format :json
      get do
        { ok: true }
      end
    end
  end

  def app
    subject
  end

  context 'with a global namespace function' do
    it 'works' do
      get '/'
      expect(last_response.status).to eq 200
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-0.16.2 spec/grape/integration/global_namespace_function_spec.rb