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.1.0 test/jobs/deliver_hook_job_test.rb
shipit-engine-0.0.1.pre test/jobs/deliver_hook_job_test.rb