Class: Dommy::RSpec::CapyStyleMatchers::HaveNoRole Private
- Defined in:
- lib/dommy/rspec/capy_style_matchers.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #does_not_match?(scope) ⇒ Boolean private
- #failure_message ⇒ Object private
- #failure_message_when_negated ⇒ Object private
- #matches?(scope) ⇒ Boolean private
Methods inherited from HaveRole
Constructor Details
This class inherits a constructor from Dommy::RSpec::CapyStyleMatchers::HaveRole
Instance Method Details
#does_not_match?(scope) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
417 418 419 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 417 def does_not_match?(scope) !matches?(scope) end |
#failure_message ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
421 422 423 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 421 def "expected NOT to find #{describe_target}, found #{@matched.size}" end |
#failure_message_when_negated ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
425 426 427 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 425 def "expected to find #{describe_target}, found #{@matched.size}" end |
#matches?(scope) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
413 414 415 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 413 def matches?(scope) !super end |