Sha256: 7fe9fe791ede7af094c46f4947184fca4a8f0c264e2143e64ac8a6e43de3a14a
Contents?: true
Size: 451 Bytes
Versions: 14
Compression:
Stored size: 451 Bytes
Contents
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
14 entries across 14 versions & 1 rubygems