Skip to content

Commit 5df47f0

Browse files
author
Sam Phippen
committed
Rubocop
1 parent 1131734 commit 5df47f0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/rspec/rails/example/system_example_group.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,15 @@ def passed?
3131
RSpec.current_example.exception.nil?
3232
end
3333

34-
3534
# Delegates to `Rails.application`.
3635
def app
3736
::Rails.application
3837
end
3938

4039
included do
40+
attr_reader :driver
4141
def driven_by(*args, &blk)
42-
@driver = ::ActionDispatch::SystemTestCase.driven_by(*args, &blk).tap { |d|
43-
d.use
44-
}
45-
end
46-
47-
def driver
48-
@driver
42+
@driver = ::ActionDispatch::SystemTestCase.driven_by(*args, &blk).tap(&:use)
4943
end
5044

5145
before do

0 commit comments

Comments
 (0)