Skip to content

Commit 064033e

Browse files
committed
test list
1 parent 55f6bed commit 064033e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/support/helper.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Helper
22
def example_app(example)
33
path = Pathname.new(__FILE__).join("../../../examples/#{example}/config.ru")
4-
Rack::Builder.parse_file(path.to_s)
4+
# In rack 2.x parse_file returns a tuple
5+
app, _config = *Rack::Builder.parse_file(path.to_s)
6+
app
57
end
68
end

0 commit comments

Comments
 (0)