Skip to content

Commit

Permalink
Update SSR tests to work with Rack 3 (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilvanbeinum committed Sep 18, 2022
1 parent bc155fb commit a704170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridgetown-core/test/test_ssr.rb
@@ -1,12 +1,13 @@
# frozen_string_literal: true

require "helper"
require "rack"

class TestSSR < BridgetownUnitTest
include Rack::Test::Methods

def app
@@ssr_app ||= Rack::Builder.parse_file(File.expand_path("ssr/config.ru", __dir__)).first # rubocop:disable Style/ClassVars
@@ssr_app ||= Rack::Builder.parse_file(File.expand_path("ssr/config.ru", __dir__)) # rubocop:disable Style/ClassVars
end

def site
Expand Down

0 comments on commit a704170

Please sign in to comment.