Class: Dommy::RSpec::CapyStyleMatchers::HaveNoContent Private

Inherits:
HaveContent
  • Object
show all
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

Methods inherited from HaveContent

#description, #initialize

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.

Returns:

  • (Boolean)


218
219
220
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 218

def does_not_match?(scope)
  !matches?(scope)
end

#failure_messageObject

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 failure_message
  "expected text NOT to include #{@text.inspect}, got #{@actual.inspect}"
end

#failure_message_when_negatedObject

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 failure_message_when_negated
  "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.

Returns:

  • (Boolean)


214
215
216
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 214

def matches?(scope)
  !super
end