File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
lib/protocol/rack/adapter Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ def call(request)
90
90
raise ArgumentError , "Headers must not be nil!"
91
91
end
92
92
93
- unless body . respond_to? ( :each )
94
- raise ArgumentError , "Body must respond to #each!"
95
- end
93
+ # unless body.respond_to?(:each)
94
+ # raise ArgumentError, "Body must respond to #each!"
95
+ # end
96
96
97
97
headers , meta = self . wrap_headers ( headers )
98
98
Original file line number Diff line number Diff line change 112
112
let ( :response ) { client . get ( "/" ) }
113
113
114
114
it "can read streaming response" do
115
- skip "Streaming response not supported"
115
+ skip "Streaming response not supported" if Protocol :: Rack :: Adapter :: VERSION < "2"
116
116
117
117
expect ( response . read ) . to be == "Hello Streaming World"
118
118
end
Original file line number Diff line number Diff line change 77
77
end
78
78
end
79
79
80
- with "string response" do
81
- let ( :app ) { -> ( env ) { [ 200 , { } , "Hello" ] } }
80
+ # with "string response" do
81
+ # let(:app) {->(env) {[200, {}, "Hello"]}}
82
82
83
- it "handles string response correctly" do
84
- expect ( response . status ) . to be == 500
85
- expect ( response . read ) . to be == "ArgumentError: Body must respond to #each!"
86
- end
87
- end
83
+ # it "handles string response correctly" do
84
+ # expect(response.status).to be == 500
85
+ # expect(response.read).to be == "ArgumentError: Body must respond to #each!"
86
+ # end
87
+ # end
88
88
end
89
89
90
90
with "header transformation" do
You can’t perform that action at this time.
0 commit comments