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

Version Path
shipit-engine-0.31.0 test/models/github_hook_test.rb
shipit-engine-0.30.0 test/models/github_hook_test.rb
shipit-engine-0.29.0 test/models/github_hook_test.rb
shipit-engine-0.28.1 test/models/github_hook_test.rb
shipit-engine-0.28.0 test/models/github_hook_test.rb
shipit-engine-0.27.1 test/models/github_hook_test.rb
shipit-engine-0.27.0 test/models/github_hook_test.rb
shipit-engine-0.26.0 test/models/github_hook_test.rb
shipit-engine-0.25.1 test/models/github_hook_test.rb
shipit-engine-0.25.0 test/models/github_hook_test.rb
shipit-engine-0.24.0 test/models/github_hook_test.rb
shipit-engine-0.23.1 test/models/github_hook_test.rb
shipit-engine-0.23.0 test/models/github_hook_test.rb
shipit-engine-0.22.0 test/models/github_hook_test.rb