File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,14 @@ def self.add_test_type_configurations(config)
51
51
config . include RSpec ::Rails ::Matchers
52
52
53
53
if ActionPack ::VERSION ::STRING >= "5.1"
54
- config . include RSpec ::Rails ::SystemExampleGroup , :type => :system
54
+ begin
55
+ require 'puma'
56
+ require 'capybara'
57
+ config . include RSpec ::Rails ::SystemExampleGroup , :type => :system
58
+ # rubocop:disable Lint/HandleExceptions
59
+ rescue LoadError
60
+ # rubocop:enable Lint/HandleExceptions
61
+ end
55
62
end
56
63
end
57
64
Original file line number Diff line number Diff line change 9
9
require 'rspec/rails/example/job_example_group'
10
10
require 'rspec/rails/example/feature_example_group'
11
11
if ActionPack ::VERSION ::STRING >= "5.1"
12
- require 'rspec/rails/example/system_example_group'
12
+ begin
13
+ require 'puma'
14
+ require 'capybara'
15
+ require 'rspec/rails/example/system_example_group'
16
+ # rubocop:disable Lint/HandleExceptions
17
+ rescue LoadError
18
+ # rubocop:enable Lint/HandleExceptions
19
+ end
13
20
end
You can’t perform that action at this time.
0 commit comments