Skip to content

Commit cd85820

Browse files
author
Laurent Cobos
committed
Merge branch 'master' into fix-1554
2 parents 472ffb7 + 4b2d5e4 commit cd85820

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

Changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
### Development
2+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.7.1...master)
3+
4+
### 3.7.1 / 2017-10-18
5+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
6+
7+
Bug Fixes:
8+
9+
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
10+
11+
### 3.7.0 / 2017-10-17
12+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
213

314
Bug Fixes:
415

lib/rspec/rails/configuration.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ def self.add_test_type_configurations(config)
5151
config.include RSpec::Rails::Matchers
5252

5353
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
5562
end
5663
end
5764

lib/rspec/rails/example.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@
99
require 'rspec/rails/example/job_example_group'
1010
require 'rspec/rails/example/feature_example_group'
1111
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
1320
end

lib/rspec/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Rails
33
# Version information for RSpec Rails.
44
module Version
55
# Current version of RSpec Rails, in semantic versioning format.
6-
STRING = '3.7.0.pre'
6+
STRING = '3.8.pre'
77
end
88
end
99
end

0 commit comments

Comments
 (0)