Sha256: d420ad0a6589095a56a4f4dec7196045693c3c418b6d47fc09db827c519af722

Contents?: true

Size: 410 Bytes

Versions: 12

Compression:

Stored size: 410 Bytes

Contents

require 'test_helper'

module Shipit
  class DestroyStackJobTest < ActiveSupport::TestCase
    setup do
      @job = DestroyStackJob.new
      @stack = Stack.first
    end

    test "perform destroys the received stack" do
      Shipit.github.api.expects(:remove_hook).times(@stack.github_hooks.count)

      assert_difference -> { Stack.count }, -1 do
        @job.perform(@stack)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shipit-engine-0.29.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.28.1 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.28.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.27.1 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.27.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.26.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.25.1 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.25.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.24.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.23.1 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.23.0 test/jobs/destroy_stack_job_test.rb
shipit-engine-0.22.0 test/jobs/destroy_stack_job_test.rb