Module: BoltSpec

Defined in:
lib/bolt_spec/run.rb,
lib/bolt_spec/plans.rb,
lib/bolt_spec/plans/action_stubs.rb,
lib/bolt_spec/plans/publish_stub.rb,
lib/bolt_spec/plans/mock_executor.rb,
lib/bolt_spec/plans/action_stubs/task_stub.rb,
lib/bolt_spec/plans/action_stubs/script_stub.rb,
lib/bolt_spec/plans/action_stubs/upload_stub.rb,
lib/bolt_spec/plans/action_stubs/command_stub.rb

Overview

it ‘expects multiple messages to out::message’ do

    expect_out_message.be_called_times(2).with_params(message)
    result = run_plan(plan_name, 'messages' => [message, message])
    expect(result).to be_ok
  end
end

See spec/bolt_spec/plan_spec.rb for more examples.

Defined Under Namespace

Modules: Plans, Run