Sha256: 31546fdcb732a5628bf8de77a505217e4b4154b49dbc5a894dbd46fd2e6eae43
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require 'spec_helper' describe Octogate::Event::Issue do describe ".parse" do subject { described_class.parse("delivery_id", read_payload(:issues)) } it { should be_a described_class } it { expect(subject.action).to eq "opened" } it { expect(subject.issue).to be_a Octogate::GH::Issue } it { expect(subject.issue.id).to eq 28599630 } it { expect(subject.issue.labels.first).to be_a Octogate::GH::Label } it { expect(subject.repository).to be_a Octogate::GH::Repository } end describe "registered" do subject { Octogate::Event.get(:issues) } it { should eq Octogate::Event::Issue } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.4.0 | spec/lib/octogate/events/issue_spec.rb |
octogate-0.3.0 | spec/lib/octogate/events/issue_spec.rb |