Sha256: 271e4c7c6b5d56cba7fc6a0d0d3d1a15e166e452575ac2b6aae6494437b81cde
Contents?: true
Size: 608 Bytes
Versions: 4
Compression:
Stored size: 608 Bytes
Contents
require 'spec_helper' describe Octogate::Target do describe "#include_event?" do let(:target) { described_class.new(hook_type: [:push]) } context "hook_type include Given Event" do subject { target.include_event?(Octogate::Event::Push) } it { should be_true } end context "hook_type not include Given Event" do subject { target.include_event?(Octogate::Event::PullRequest) } it { should be_false } end context "Given event instance" do subject { target.include_event?(Octogate::Event::Push.new()) } it { should be_true } end end end
Version data entries
4 entries across 4 versions & 1 rubygems