Class: Sequent::Core::Helpers::AttrMatchers::NotEquals
- Inherits:
-
Struct
- Object
- Struct
- Sequent::Core::Helpers::AttrMatchers::NotEquals
- Defined in:
- lib/sequent/core/helpers/attr_matchers/not_equals.rb
Instance Attribute Summary collapse
-
#expected_value ⇒ Object
Returns the value of attribute expected_value.
Instance Method Summary collapse
Instance Attribute Details
#expected_value ⇒ Object
Returns the value of attribute expected_value
7 8 9 |
# File 'lib/sequent/core/helpers/attr_matchers/not_equals.rb', line 7 def expected_value @expected_value end |
Instance Method Details
#matches_attr?(actual_value) ⇒ Boolean
8 9 10 |
# File 'lib/sequent/core/helpers/attr_matchers/not_equals.rb', line 8 def matches_attr?(actual_value) actual_value != expected_value end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/sequent/core/helpers/attr_matchers/not_equals.rb', line 12 def to_s "neq(#{ArgumentSerializer.serialize_value(expected_value)})" end |