Sha256: 8f4e100e5980ae54c75c5d1ae22ddd2c5ba38e49d4a6c3624718d0c977b69e15

Contents?: true

Size: 422 Bytes

Versions: 10

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

module Shipit
  class EmitEventJobTest < ActiveSupport::TestCase
    setup do
      @stack = shipit_stacks(:shipit)
      @job = EmitEventJob.new
    end

    test "#perform schedule deliveries" do
      assert_enqueued_jobs(2, only: DeliverHookJob) do
        @job.perform(event: :deploy, stack_id: @stack.id, payload: { foo: 42 }.to_json)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.38.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.37.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.36.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.36.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.35.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.35.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.34.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.33.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.32.0 test/jobs/emit_event_job_test.rb