We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f6bed commit 064033eCopy full SHA for 064033e
spec/support/helper.rb
@@ -1,6 +1,8 @@
1
module Helper
2
def example_app(example)
3
path = Pathname.new(__FILE__).join("../../../examples/#{example}/config.ru")
4
- Rack::Builder.parse_file(path.to_s)
+ # In rack 2.x parse_file returns a tuple
5
+ app, _config = *Rack::Builder.parse_file(path.to_s)
6
+ app
7
end
8
0 commit comments