Sha256: c77d7d6c5ac43dcbcce8f8eb00225c4ffbe8565eaf0bb36c7eb1847b906fdf0b
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
require 'spec_helper' describe Octogate::Event::PullRequest do describe ".parse" do subject { described_class.parse("delivery_id", 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 describe "registered" do subject { Octogate::Event.get(:pull_request) } it { should eq Octogate::Event::PullRequest } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.4.0 | spec/lib/octogate/events/pull_request_spec.rb |
octogate-0.3.0 | spec/lib/octogate/events/pull_request_spec.rb |