• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 6597809824

21 Oct 2023 02:04PM UTC coverage: 99.045%. Remained the same
6597809824

Pull #2360

github

web-flow
Merge b5bd7df32 into 4e2a2ff47
Pull Request #2360: Reduce gem size by removing test_files (spec)

15137 of 15283 relevant lines covered (99.04%)

1231.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/spec/grape/integration/global_namespace_function_spec.rb
1
# frozen_string_literal: true
2

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

5
def namespace
22✔
6
  raise
×
7
end
8

9
describe Grape::API do
22✔
10
  subject do
22✔
11
    Class.new(Grape::API) do
22✔
12
      format :json
22✔
13
      get do
22✔
14
        { ok: true }
22✔
15
      end
16
    end
17
  end
18

19
  def app
22✔
20
    subject
22✔
21
  end
22

23
  context 'with a global namespace function' do
22✔
24
    it 'works' do
22✔
25
      get '/'
22✔
26
      expect(last_response.status).to eq 200
22✔
27
    end
28
  end
29
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc