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