Sha256: ad0a99c80539fbcb818442c04a53764d15262a30c0699f140112fbf5a5a82dff

Contents?: true

Size: 420 Bytes

Versions: 18

Compression:

Stored size: 420 Bytes

Contents

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

require 'spec_helper'

def namespace
  raise
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

18 entries across 18 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/spec/grape/integration/global_namespace_function_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/grape/integration/global_namespace_function_spec.rb
grape-1.2.5 spec/grape/integration/global_namespace_function_spec.rb
grape-1.2.4 spec/grape/integration/global_namespace_function_spec.rb
grape-1.2.3 spec/grape/integration/global_namespace_function_spec.rb
grape-1.2.2 spec/grape/integration/global_namespace_function_spec.rb
grape-1.2.1 spec/grape/integration/global_namespace_function_spec.rb
grape-1.2.0 spec/grape/integration/global_namespace_function_spec.rb
grape-1.1.0 spec/grape/integration/global_namespace_function_spec.rb
grape-1.0.3 spec/grape/integration/global_namespace_function_spec.rb
grape-1.0.2 spec/grape/integration/global_namespace_function_spec.rb
grape-1.0.1 spec/grape/integration/global_namespace_function_spec.rb
grape-1.0.0 spec/grape/integration/global_namespace_function_spec.rb
grape-0.19.2 spec/grape/integration/global_namespace_function_spec.rb
grape-0.19.1 spec/grape/integration/global_namespace_function_spec.rb
grape-0.19.0 spec/grape/integration/global_namespace_function_spec.rb
grape-0.18.0 spec/grape/integration/global_namespace_function_spec.rb
grape-0.17.0 spec/grape/integration/global_namespace_function_spec.rb