Skip to content

Commit 27b25aa

Browse files
committed
Fix Rubocop errors
1 parent 0714e05 commit 27b25aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/grape/util/sendfile_response.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Util
33
# Response should respond to to_path method
44
# for using Rack::SendFile middleware
55
class SendfileResponse < Rack::Response
6-
def respond_to?(method_name, include_all=false)
6+
def respond_to?(method_name, include_all = false)
77
if method_name == :to_path
88
@body.respond_to?(:to_path, include_all)
99
else

spec/grape/integration/rack_sendfile_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
double(:file_streamer, to_path: '/accel/mapping/some/path')
2626
end
2727

28-
it "contains Sendfile headers" do
28+
it 'contains Sendfile headers' do
2929
headers = subject[1]
3030
expect(headers).to include('X-Accel-Redirect')
3131
end
@@ -36,7 +36,7 @@
3636
double(:file_streamer)
3737
end
3838

39-
it "not contains Sendfile headers" do
39+
it 'not contains Sendfile headers' do
4040
headers = subject[1]
4141
expect(headers).to_not include('X-Accel-Redirect')
4242
end

0 commit comments

Comments
 (0)