Skip to content

Commit 1f35f50

Browse files
committed
Drop driven_by(:selenium)
In my testing, it does not have any influence.
1 parent b80f752 commit 1f35f50

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

spec/rspec/rails/example/system_example_group_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ module RSpec::Rails
9191
group = RSpec::Core::ExampleGroup.describe do
9292
include SystemExampleGroup
9393

94-
before do
95-
driven_by(:selenium)
96-
end
97-
9894
def take_screenshot
9995
puts 'line 1'
10096
puts 'line 2'
@@ -113,10 +109,6 @@ def take_screenshot
113109
group = RSpec::Core::ExampleGroup.describe do
114110
include SystemExampleGroup
115111

116-
before do
117-
driven_by(:selenium)
118-
end
119-
120112
def page
121113
instance_double(Capybara::Session, save_screenshot: nil)
122114
end
@@ -162,10 +154,6 @@ def page
162154
group = RSpec::Core::ExampleGroup.describe do
163155
include SystemExampleGroup
164156

165-
before do
166-
driven_by(:selenium)
167-
end
168-
169157
after do
170158
calls_in_order << :after_hook
171159
end

0 commit comments

Comments
 (0)