We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7b0834 commit b8ebd82Copy full SHA for b8ebd82
spec/spec_helper.rb
@@ -20,17 +20,7 @@
20
# so it should be set to true here as well to reflect that.
21
I18n.enforce_available_locales = true
22
23
-module Chunks
24
- def read_chunks(body)
25
- buffer = []
26
- body.each { |chunk| buffer << chunk }
27
-
28
- buffer
29
- end
30
-end
31
32
RSpec.configure do |config|
33
- config.include Chunks
34
config.include Rack::Test::Methods
35
config.include Spec::Support::Helpers
36
config.raise_errors_for_deprecations!
spec/support/chunks.rb
@@ -0,0 +1,14 @@
1
+# frozen_string_literal: true
2
+
3
+module Chunks
4
+ def read_chunks(body)
5
+ buffer = []
6
+ body.each { |chunk| buffer << chunk }
7
8
+ buffer
9
+ end
10
+end
11
12
+RSpec.configure do |config|
13
+ config.include Chunks
14
0 commit comments