Sha256: cc50af2de93832d0b5c47522c605ec28695a94e80faa9e22532544578ad2f333
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' describe Octogate::Event::Push do describe ".parse" do subject { described_class.parse("delivery_id", read_payload(:push)) } it { should be_a described_class } it { expect(subject.ref).to eq "refs/heads/master" } it { expect(subject.commits).to be_a Array } it { expect(subject.commits.first).to be_a Octogate::GH::Commit } it { expect(subject.head_commit).to be_a Octogate::GH::Commit } it { expect(subject.repository).to be_a Octogate::GH::Repository } end describe "registered" do subject { Octogate::Event.get(:push) } it { should eq Octogate::Event::Push } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.4.0 | spec/lib/octogate/events/push_spec.rb |
octogate-0.3.0 | spec/lib/octogate/events/push_spec.rb |