Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit b1ba98f

Browse files
committed
Flag the really_responds_to? fallback as nocov
In contexts without RSpec::Mocks::Double defined, we don't need to check this, but of course it's always defined in our _rspec tests._
1 parent da2288b commit b1ba98f

File tree

1 file changed

+2
-0
lines changed
  • lib/rspec/matchers/built_in

1 file changed

+2
-0
lines changed

lib/rspec/matchers/built_in/has.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ def really_responds_to?(method)
5858
end
5959
end
6060
else
61+
# :nocov:
6162
def really_responds_to?(method)
6263
@actual.respond_to?(method)
6364
end
65+
# :nocov:
6466
end
6567

6668
def predicate_accessible?

0 commit comments

Comments
 (0)