Class: Katalyst::Kpop::Matchers::Base

Inherits:
RSpec::Rails::Matchers::BaseMatcher
  • Object
show all
Defined in:
lib/katalyst/kpop/matchers/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#matchedObject (readonly)

Returns the value of attribute matched.



9
10
11
# File 'lib/katalyst/kpop/matchers/base.rb', line 9

def matched
  @matched
end

Instance Method Details

#matches?(actual) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
# File 'lib/katalyst/kpop/matchers/base.rb', line 11

def matches?(actual)
  @matched = super
  @matched.present?
end