Sha256: aa58b47c74deb15ab17e8f43023bc0c4dbefdad17d21f9f1f670dcb963a5b8e7

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe BitBucket::Error::NoEvents do
  context 'no events are passed in BitBucket::Repos::Webhooks#create or BitBucket::Repos::Webhooks#edit' do
    it 'should raise an error with a message' do
      expect { raise described_class }
        .to raise_error(BitBucket::Error::NoEvents, 'At least one event is required, none given :(')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 spec/bitbucket_rest_api/error/no_events_spec.rb