Sha256: c7bb9f1a400ce561f79390500ffc14180362da1b04a2fec70343c56f4e909a51

Contents?: true

Size: 741 Bytes

Versions: 2

Compression:

Stored size: 741 Bytes

Contents

require 'spec_helper'

describe Octogate::Event::PullRequestReviewComment do
  describe ".parse" do
    subject { described_class.parse("delivery_id", read_payload(:pull_request_review_comment)) }
    it { should be_a described_class }

    it { expect(subject.comment).to be_a Octogate::GH::ReviewComment }
    it { expect(subject.comment.id).to eq 10384812 }
    it { expect(subject.comment.user).to be_a Octogate::GH::User }
    it { expect(subject.repository).to be_a Octogate::GH::Repository }
    it { expect(subject.comment.body).to eq "review comment test" }
  end

  describe "registered" do
    subject { Octogate::Event.get(:pull_request_review_comment) }

    it { should eq Octogate::Event::PullRequestReviewComment }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
octogate-0.4.0 spec/lib/octogate/events/pull_request_review_comment_spec.rb
octogate-0.3.0 spec/lib/octogate/events/pull_request_review_comment_spec.rb