• 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

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

3
module Grape
6✔
4
  module ServeStream
6✔
5
    # Response should respond to to_path method
6
    # for using Rack::SendFile middleware
7
    class SendfileResponse < Rack::Response
6✔
8
      def respond_to?(method_name, include_all = false)
6✔
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
6✔
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