diff --git a/lib/capybara/rspec.rb b/lib/capybara/rspec.rb index 5795a3b5..36b7ae49 100644 --- a/lib/capybara/rspec.rb +++ b/lib/capybara/rspec.rb @@ -18,7 +18,7 @@ RSpec.configure do |config| config.before do |example| if self.class.include?(Capybara::DSL) Capybara.current_driver = Capybara.javascript_driver if example.metadata[:js] - ampleCapybara.current_driver = example.metadata[:driver] if example.metadata[:driver] + Capybara.current_driver = example.metadata[:driver] if example.metadata[:driver] end end end