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

ruby-grape / grape / 4713567423

pending completion
4713567423

Pull #2315

github

GitHub
Merge 02fddb77c into d6b26aff0
Pull Request #2315: Update rspec version from `3.11.0` to `< 4`

10902 of 11054 relevant lines covered (98.62%)

456.66 hits per line

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

87.5
/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
6✔
6
  raise
×
7
end
8

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

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

23
  context 'with a global namespace function' do
5✔
24
    it 'works' do
5✔
25
      get '/'
6✔
26
      expect(last_response.status).to eq 200
6✔
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