Sha256: 2791f19cf28b561397a46c2c60b6c080c2ffa373cd24da994a3d915faaf3b9b0

Contents?: true

Size: 362 Bytes

Versions: 22

Compression:

Stored size: 362 Bytes

Contents

require 'test_helper'

class DeliverHookJobTest < ActiveSupport::TestCase
  setup do
    @delivery = 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

Version data entries

22 entries across 22 versions & 1 rubygems

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