Sha256: ae7161572d8cca27257d0d8acfa2023c2310f534a188beb1cb4e46fd1f25a08a

Contents?: true

Size: 646 Bytes

Versions: 18

Compression:

Stored size: 646 Bytes

Contents

require 'spec_helper'

describe GH::MergeCommit do
  let(:file) { File.expand_path('../pull_request_hook.json', __FILE__) }
  let(:payload) { File.read file }
  let(:gh) { GH.load payload }
  let(:pull_request) { gh['pull_request'] }

  it 'adds merge commits' do
    pull_request['merge_commit']['sha'].should_not be_nil
  end

  it 'adds base commits' do
    pull_request['base_commit']['sha'].should_not be_nil
  end

  it 'adds head commits' do
    pull_request['head_commit']['sha'].should_not be_nil
  end

  it 'allows lazy loading on the commit' do
    pull_request['merge_commit']['committer']['name'] == 'GitHub Merge Button'
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gh-0.13.0 spec/merge_commit_spec.rb
gh-0.12.4 spec/merge_commit_spec.rb
gh-0.12.3 spec/merge_commit_spec.rb
gh-0.12.2 spec/merge_commit_spec.rb
gh-0.12.1 spec/merge_commit_spec.rb
gh-0.12.0 spec/merge_commit_spec.rb
gh-0.11.3 spec/merge_commit_spec.rb
gh-0.11.2 spec/merge_commit_spec.rb
gh-0.11.1 spec/merge_commit_spec.rb
gh-0.11.0 spec/merge_commit_spec.rb
gh-0.10.3 spec/merge_commit_spec.rb
gh-0.10.2 spec/merge_commit_spec.rb
gh-0.10.1 spec/merge_commit_spec.rb
gh-0.10.0 spec/merge_commit_spec.rb
gh-0.9.2 spec/merge_commit_spec.rb
gh-0.9.1 spec/merge_commit_spec.rb
gh-0.9.0 spec/merge_commit_spec.rb
gh-0.8.0 spec/merge_commit_spec.rb