Module: Canned::Context::Matchers::AsksFor
Instance Method Summary collapse
-
#asked_for(*_actions) ⇒ Object
(also: #asks_for)
Tests the action name.
Instance Method Details
#asked_for(*_actions) ⇒ Object Also known as: asks_for
Tests the action name
11 12 13 |
# File 'lib/canned/context/matchers/asks_for.rb', line 11 def asked_for(*_actions) _actions.any? { |a| a.to_s == @ctx.action_name } end |