lib/bolt_spec/plans/action_stubs.rb
# Restricts the stub to only match invocations with
# the correct targets
Restricts the stub to only match invocations with
the correct targets
Restricts the stub to only match invocations with the correct targets
def with_targets(targets)
        targets = Array(targets)
        @invocation[:targets] = targets.map do |target|
          if target.is_a? String
            target
          else
            target.name
          end
        end
        self
      end
def with_targets ( targets ) targets = Array ( targets ) @invocation [ :targets ] = targets . map do | target | if target . is_a? String target else target . name end end self end
Restricts the stub to only match invocations with
the correct targets
Restricts the stub to only match invocations with the correct targets
targets
<not_specific>