Sha256: b79414b6301ffeb00ed726d9c23a64c75ce3eefb1bbc77b39087eca04a50058d

Contents?: true

Size: 409 Bytes

Versions: 42

Compression:

Stored size: 409 Bytes

Contents

require 'test_helper'

module Shipit
  class DeliverHookJobTest < ActiveSupport::TestCase
    setup do
      @delivery = shipit_deliveries(:scheduled_shipit_deploy)
      @job = DeliverHookJob.new
    end

    test "#perform delivers a delivery" do
      FakeWeb.register_uri(:post, @delivery.url, body: 'OK')
      @job.perform(@delivery)
      assert_equal 'sent', @delivery.reload.status
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
shipit-engine-0.28.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.27.1 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.27.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.26.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.25.1 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.25.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.24.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.23.1 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.23.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.22.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.21.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.20.1 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.20.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.19.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.18.1 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.18.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.17.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.16.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.15.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.14.0 test/jobs/deliver_hook_job_test.rb