File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module Util
3
3
# Response should respond to to_path method
4
4
# for using Rack::SendFile middleware
5
5
class SendfileResponse < Rack ::Response
6
- def respond_to? ( method_name , include_all = false )
6
+ def respond_to? ( method_name , include_all = false )
7
7
if method_name == :to_path
8
8
@body . respond_to? ( :to_path , include_all )
9
9
else
Original file line number Diff line number Diff line change 25
25
double ( :file_streamer , to_path : '/accel/mapping/some/path' )
26
26
end
27
27
28
- it " contains Sendfile headers" do
28
+ it ' contains Sendfile headers' do
29
29
headers = subject [ 1 ]
30
30
expect ( headers ) . to include ( 'X-Accel-Redirect' )
31
31
end
36
36
double ( :file_streamer )
37
37
end
38
38
39
- it " not contains Sendfile headers" do
39
+ it ' not contains Sendfile headers' do
40
40
headers = subject [ 1 ]
41
41
expect ( headers ) . to_not include ( 'X-Accel-Redirect' )
42
42
end
You can’t perform that action at this time.
0 commit comments