Skip to content

Commit 5bc4d20

Browse files
Merge pull request #394 from alphagov/bau-update-rack-file-to-rack-files
Fix: Update Rack::File to Rack::Files in test specs
2 parents 499e4e2 + fab2687 commit 5bc4d20

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- [Bump govuk-frontend to v5.9.0 and pin middleman to v4.5.1](https://github.com/alphagov/tech-docs-gem/pull/390)
44

5+
- [Fix: Update Rack::File to Rack::Files in test specs](https://github.com/alphagov/tech-docs-gem/pull/394)
6+
57
## 4.2.0
68

79
## New features

spec/features/api_reference_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
require "rack/file"
1+
require "rack/files"
22
require "capybara/rspec"
33

4-
Capybara.app = Rack::File.new("example/build")
4+
Capybara.app = Rack::Files.new("example/build")
55

66
RSpec.describe "OpenAPI reference" do
77
include Capybara::DSL

spec/features/integration_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
require "rack/file"
1+
require "rack/files"
22
require "capybara/rspec"
33

4-
Capybara.app = Rack::File.new("example/build")
4+
Capybara.app = Rack::Files.new("example/build")
55

66
RSpec.describe "The tech docs template" do
77
include Capybara::DSL

spec/features/page_expiration_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
require "rack/file"
1+
require "rack/files"
22
require "capybara/rspec"
33

4-
Capybara.app = Rack::File.new("example/build")
4+
Capybara.app = Rack::Files.new("example/build")
55

66
RSpec.describe "Page expiration" do
77
include Capybara::DSL

0 commit comments

Comments
 (0)