Sha256: 106ad53a82b0f84233984cd8eaad13184ef37c711dbfc471646eb49ef59e10fc

Contents?: true

Size: 390 Bytes

Versions: 10

Compression:

Stored size: 390 Bytes

Contents

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.31.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.30.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.29.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.28.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.28.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.27.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.27.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.26.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.25.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.25.0 test/jobs/emit_event_job_test.rb