From f7fdc2f330d92a6254f066d516e2d95e98381819 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 29 Aug 2024 20:41:48 +0900 Subject: [PATCH] :cop: --- features/support/env.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/support/env.rb b/features/support/env.rb index 6bffbb97..e0ce96a4 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -13,12 +13,12 @@ # Monkey-patching Capybara::DSL if Capybara::DSLRSpecProxyInstaller has no `extended` hook unless Module.new { extend RSpec::Matchers; extend Capybara::DSL }.singleton_class.ancestors.include?(Capybara::RSpecMatcherProxies) - Capybara::DSL.extend(Module.new { + Capybara::DSL.extend(Module.new do def extended(base) - base.extend(::Capybara::RSpecMatcherProxies) if defined?(::RSpec::Matchers) && base.is_a?(::RSpec::Matchers) + base.extend(Capybara::RSpecMatcherProxies) if defined?(RSpec::Matchers) && base.is_a?(RSpec::Matchers) super end - }) + end) end # Rack app for Capybara which returns the latest coverage report from Aruba temp project dir