Sha256: 10c9bcf778e0258c75e22d06de9ca0caf2cc980299c40c1730077580a3b3f142
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
require 'spec_helper' describe Octogate::Event::PullRequest do describe ".parse" do subject { described_class.parse(read_payload(:pull_request)) } it { should be_a described_class } it { expect(subject.action).to eq "opened" } it { expect(subject.number).to eq 2 } it { expect(subject.pull_request).to be_a Octogate::GH::PullRequest } it { expect(subject.pull_request.base).to be_a Octogate::GH::Commit } it { expect(subject.pull_request.head).to be_a Octogate::GH::Commit } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.2.1 | spec/lib/octogate/events/pull_request_spec.rb |
octogate-0.2.0 | spec/lib/octogate/events/pull_request_spec.rb |