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)


226
227
228
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 226

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.



230
231
232
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 230

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.



234
235
236
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 234

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)


222
223
224
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 222

def matches?(scope)
  !super
end