Skip to content

Commit e6b5c83

Browse files
JonRowesebjacobs
authored andcommitted
Improve load error message formatting
1 parent bbb35a0 commit e6b5c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/example/system_example_group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def app
5252
require 'action_dispatch/system_test_case'
5353
# rubocop:disable Lint/HandleExceptions
5454
rescue LoadError => e
55-
p e
5655
# rubocop:enable Lint/HandleExceptions
5756
abort """
57+
LoadError: #{e.message}
5858
System test integration requires Rails >= 5.1 and has a hard
5959
dependency on a webserver and `capybara`, please add capybara to
6060
your Gemfile and configure a webserver (e.g. `Capybara.server =

0 commit comments

Comments
 (0)