Sha256: 580c20c6e4dfc4f6fa51fa17f3a2a02f1a7fd5ed27b506f829d2aa6c0241a48c
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 Bytes
Contents
require 'spec_helper' describe Octogate::Event::IssueComment do describe ".parse" do subject { described_class.parse("delivery_id", read_payload(:issue_comment)) } it { should be_a described_class } it { expect(subject.action).to eq "created" } it { expect(subject.issue).to be_a Octogate::GH::Issue } it { expect(subject.issue.id).to eq 28599636 } it { expect(subject.issue.labels.first).to be_a Octogate::GH::Label } it { expect(subject.repository).to be_a Octogate::GH::Repository } it { expect(subject.comment).to be_a Octogate::GH::IssueComment } it { expect(subject.comment.body).to eq "IssueとIssue Commentを追加する。" } end describe "registered" do subject { Octogate::Event.get(:issue_comment) } it { should eq Octogate::Event::IssueComment } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.4.0 | spec/lib/octogate/events/issue_comment_spec.rb |
octogate-0.3.0 | spec/lib/octogate/events/issue_comment_spec.rb |