Module: Canned::Context::Matchers::Is
Instance Method Summary collapse
-
#is(_key) ⇒ Object
(also: #are)
Test an expression or property.
Instance Method Details
#is(_key) ⇒ Object Also known as: are
Test an expression or property
Examples:
upon { a(:calculator).is(:is_open?) }
upon { the(:user).is('level > 20') }
14 15 16 17 |
# File 'lib/canned/context/matchers/is.rb', line 14 def is(_key) return false unless indeed? Helpers.resolve(@stack.top, _key) end |