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

Version Path
shipit-engine-0.39.0 test/models/github_hook_test.rb
shipit-engine-0.38.0 test/models/github_hook_test.rb
shipit-engine-0.37.0 test/models/github_hook_test.rb
shipit-engine-0.36.1 test/models/github_hook_test.rb
shipit-engine-0.36.0 test/models/github_hook_test.rb
shipit-engine-0.35.1 test/models/github_hook_test.rb
shipit-engine-0.35.0 test/models/github_hook_test.rb
shipit-engine-0.34.0 test/models/github_hook_test.rb
shipit-engine-0.33.0 test/models/github_hook_test.rb
shipit-engine-0.32.0 test/models/github_hook_test.rb