Skip to content

Commit

Permalink
Install RSpecMatcherProxies via Object#extend as well
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 28, 2024
1 parent 0480f90 commit 4189ed8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/capybara/rspec/matcher_proxies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def included(base)
base.include(::Capybara::RSpecMatcherProxies) if defined?(::RSpec::Matchers) && base.include?(::RSpec::Matchers)
super
end

def extended(base)
base.extend(::Capybara::RSpecMatcherProxies) if defined?(::RSpec::Matchers) && base.is_a?(::RSpec::Matchers)
super
end
end

def self.prepended(base)
Expand Down

0 comments on commit 4189ed8

Please sign in to comment.