integration-tests-rails 1.0.6 → 1.0.8

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: cbf549fca5bb85c1553616f5682e96415bf075b46295217f38ae7869279900c5
4
- data.tar.gz: 8e0ddbf263acbedfd3252e707cb257677b7da3cf098a27079e9ebfd363ed55c2
3
+ metadata.gz: fd9324031c217a8ec83714af3b5e4aa13970d8f7207329dec77cf7eac9e67f77
4
+ data.tar.gz: 063caea1b6bb80fd619cb1fb9cde292140282b5d9943c5bd7d35cbdf11e1942f
5
5
  SHA512:
6
- metadata.gz: f1aac9a592c7b515cb6e5d2392816055adef54f02ff4d6e59b6ad0a0a9cf64b5a7432246342410f1d8dcee5b554787b76e96b6b6f6694f9d131b169b657be8cd
7
- data.tar.gz: 6a8836dda8b29c52eb2b68f4ed57d2e67db2f79deebd0535520886a4b7ca8446ab2e23bf8991c787c29a12cf6c3f144cff46d9b831d65018ad4b52fe06959743
6
+ metadata.gz: 63ca3042ff7f05e8f785f79c396b644267fb3570599bb4a7f21ca6034a58dc75460ee71d396af671502e0721a012b63daeabe22683fc24b7f825951ddce5606a
7
+ data.tar.gz: d5a1972b1930d8ae3d68b1c2498cc2a08d496d32d18af7ca1274b3e6999be06b8a6990e9b58988c364c492ecf0e997649a0e8fdd75fa94adc376c6ed61dd62ab
@@ -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
- resources :tests, only: :index
50
+ get '/tests', to: 'tests#index', as: :tests
49
51
  end
52
+ routes.instance_variable_set(:@finalized, false)
50
53
  routes.finalize!
51
- log 'Routes appended and finalized.'
54
+ log 'Routes appended.'
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IntegrationTestsRails
4
- VERSION = '1.0.6'
4
+ VERSION = '1.0.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integration-tests-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tien