Sha256: de09242c317b8297f18c6ede685fc07a26459ff53544114e86e07415212265f4

Contents?: true

Size: 350 Bytes

Versions: 16

Compression:

Stored size: 350 Bytes

Contents

require 'test_helper'

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

  test "#perform schedule deliveries" do
    assert_difference -> { Delivery.scheduled.count }, 2 do
      @job.perform(event: :deploy, stack_id: @stack.id, payload: {foo: 42}.to_json)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 test/jobs/emit_event_job_test.rb
shipit-engine-0.5.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.5.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.10 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.9 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.8 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.7 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.6 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.5 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.4 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.3 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.2 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.4.0 test/jobs/emit_event_job_test.rb
shipit-engine-0.3.1 test/jobs/emit_event_job_test.rb
shipit-engine-0.3.0 test/jobs/emit_event_job_test.rb