Class: Dommy::RSpec::CapyStyleMatchers::HaveNoRole Private

Inherits:
HaveRole
  • 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 HaveRole

#description, #initialize

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.

Returns:

  • (Boolean)


417
418
419
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 417

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.



421
422
423
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 421

def failure_message
  "expected NOT to find #{describe_target}, found #{@matched.size}"
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.



425
426
427
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 425

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

Returns:

  • (Boolean)


413
414
415
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 413

def matches?(scope)
  !super
end