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