Class: Dommy::RSpec::CapyStyleMatchers::HaveLink 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.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(text, **opts) ⇒ HaveLink
constructor
private
A new instance of HaveLink.
Methods inherited from Base
#description, #does_not_match?, #failure_message, #failure_message_when_negated, #matches?
Constructor Details
#initialize(text, **opts) ⇒ HaveLink
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 a new instance of HaveLink.
233 234 235 236 |
# File 'lib/dommy/rspec/capy_style_matchers.rb', line 233 def initialize(text, **opts) super("a[href]", text: text, **opts.reject { |k, _| k == :href }) @href = opts[:href] end |