Sha256: 586676272b43c9cf81d568735d504c4ca77ef2b927c5499ed201ae4bfd6f26c5
Contents?: true
Size: 481 Bytes
Versions: 10
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module Shipit class GithubHookTest < ActiveSupport::TestCase def setup @stack = shipit_stacks(:shipit) @hook = shipit_github_hooks(:shipit_push) end test "#destroy starts by removing the hook" do Shipit.legacy_github_api.expects(:remove_hook).with(@hook.github_repo_name, @hook.github_id) assert_difference -> { GithubHook.count }, -1 do @hook.destroy! end end end end
Version data entries
10 entries across 10 versions & 1 rubygems