Skip to content

Commit

Permalink
👮
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 30, 2024
1 parent e3eb394 commit f7fdc2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7fdc2f

Please sign in to comment.