lib/rspeckled/plugins/hooks/capybara.rb in rspeckled-2.0.1 vs lib/rspeckled/plugins/hooks/capybara.rb in rspeckled-2.1.0

- old
+ new

@@ -1,17 +1,17 @@ # frozen_string_literal: true RSpec.configure do |config| - config.before(:each, :js => true) do + config.before(:each, js: true) do config.rspeckled_logger.debug("Before Each - Start - #{__FILE__}") page.driver.reset! config.rspeckled_logger.debug("Before Each - End - #{__FILE__}") end # Focus The Browser on Activation - config.around(:each, :js => true, :autofocus => true) do |example| + config.around(:each, js: true, autofocus: true) do |example| config.rspeckled_logger.debug("Around Each - Start - #{__FILE__}") browser_name = example.metadata[:driver].to_s.capitalize ::Thread.new do