Class: Dommy::RSpec::CapyStyleMatchers::HaveNoContent Private
- Inherits:
-
HaveContent
- Object
- HaveContent
- Dommy::RSpec::CapyStyleMatchers::HaveNoContent
- 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 HaveContent
Constructor Details
This class inherits a constructor from Dommy::RSpec::CapyStyleMatchers::HaveContent
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.
218 219 220 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 218 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.
222 223 224 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 222 def "expected text NOT to include #{@text.inspect}, got #{@actual.inspect}" 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.
226 227 228 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 226 def "expected text to include #{@text.inspect}, got #{@actual.inspect}" 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.
214 215 216 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 214 def matches?(scope) !super end |