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 a2750f5 commit 0022b47
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 0022b47

Please sign in to comment.