We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1131734 commit 5df47f0Copy full SHA for 5df47f0
lib/rspec/rails/example/system_example_group.rb
@@ -31,21 +31,15 @@ def passed?
31
RSpec.current_example.exception.nil?
32
end
33
34
-
35
# Delegates to `Rails.application`.
36
def app
37
::Rails.application
38
39
40
included do
+ attr_reader :driver
41
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
+ @driver = ::ActionDispatch::SystemTestCase.driven_by(*args, &blk).tap(&:use)
49
50
51
before do
0 commit comments