Sha256: 8893a549096eff31186fadad1450b260695dd81fcf99d9f0320aaa5732870740

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

describe BitBucket::Error::BadEvents do
  context 'an event that does not exist is 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.new('bad:event') }.
      to raise_error(BitBucket::Error::BadEvents, "The event: 'bad:event', does not exist :(")
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 spec/bitbucket_rest_api/error/bad_events_spec.rb
zz_bitbucket_rest_api-0.1.10 spec/bitbucket_rest_api/error/bad_events_spec.rb
zz_bitbucket_rest_api-0.1.9 spec/bitbucket_rest_api/error/bad_events_spec.rb
zz_bitbucket_rest_api-0.1.8 spec/bitbucket_rest_api/error/bad_events_spec.rb
bitbucket_rest_api2-0.9.5 spec/bitbucket_rest_api/error/bad_events_spec.rb
bitbucket_rest_api2-0.9.1 spec/bitbucket_rest_api/error/bad_events_spec.rb
bitbucket_rest_api2-0.2.2 spec/bitbucket_rest_api/error/bad_events_spec.rb
bitbucket_rest_api2-0.2.1 spec/bitbucket_rest_api/error/bad_events_spec.rb
bitbucket_rest_api2-0.2.0 spec/bitbucket_rest_api/error/bad_events_spec.rb