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

ruby-grape / grape / 3751008097

pending completion
3751008097

Pull #2288

github

GitHub
Merge cfb48cf7b into 095c6e814
Pull Request #2288: Update rubocop to 1.41.0

10904 of 11056 relevant lines covered (98.63%)

230.2 hits per line

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

62.5
/lib/grape/serve_stream/sendfile_response.rb
1
# frozen_string_literal: true
2

3
module Grape
3✔
4
  module ServeStream
3✔
5
    # Response should respond to to_path method
6
    # for using Rack::SendFile middleware
7
    class SendfileResponse < Rack::Response
3✔
8
      def respond_to?(method_name, include_all = false)
3✔
9
        if method_name == :to_path
×
10
          @body.respond_to?(:to_path, include_all)
×
11
        else
12
          super
13
        end
14
      end
15

16
      def to_path
3✔
17
        @body.to_path
×
18
      end
19
    end
20
  end
21
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