integration-tests-rails 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b8608fc129f7759a33a6f3768ade7c2e1a5ae67e665eb946b4f157f4c8ae56e
|
|
4
|
+
data.tar.gz: c2ee5b3c00d290a1eff4210c4b930be9ee24d4e3d62c7c152155f384b772f8f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e68e48fd58200cb81f1c1351ce8cee8d9cfa75a771b581c232357565a30bfe6eee5d8e14cd7e1d03723ee4487223ccd07b66cb5a3109cf468cfd3c9eb4723afc
|
|
7
|
+
data.tar.gz: 53aa2ce3e9b5a37da2935f3ca1be5b956466444b753c4556ce2f5e7717d485d78065f1a7ef91d417052b0c3b26c15bb1c96721937395fc823b1f7dde3cd6d44b
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative 'helpers'
|
|
4
|
+
require_relative 'tests_controller'
|
|
4
5
|
|
|
5
6
|
module IntegrationTestsRails
|
|
6
7
|
module Capybara
|
|
@@ -44,11 +45,13 @@ module IntegrationTestsRails
|
|
|
44
45
|
def configure_routes
|
|
45
46
|
app = Rails.application
|
|
46
47
|
routes = app.routes
|
|
48
|
+
# Use append and let Rails handle finalization automatically
|
|
47
49
|
routes.append do
|
|
48
|
-
|
|
50
|
+
get '/tests', to: 'tests#index', as: :tests
|
|
49
51
|
end
|
|
50
|
-
routes
|
|
51
|
-
|
|
52
|
+
# In Rails 8, routes are lazily finalized, so we need to force it
|
|
53
|
+
routes.eager_load!
|
|
54
|
+
log 'Routes appended and reloaded.'
|
|
52
55
|
end
|
|
53
56
|
|
|
54
57
|
def verbose?
|
|
@@ -4,7 +4,6 @@ require 'capybara/cuprite'
|
|
|
4
4
|
require_relative 'capybara/util'
|
|
5
5
|
require_relative 'capybara/remote'
|
|
6
6
|
require_relative 'capybara/local'
|
|
7
|
-
require_relative 'capybara/tests_controller'
|
|
8
7
|
|
|
9
8
|
module IntegrationTestsRails
|
|
10
9
|
# This contains the Capybara setup and configuration.
|