Sha256: ea49df6121af7247d9bc491aacca366800fda9b6bf5ac29f4d9192e6b2cc8597

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

RSpec.describe SolidusWebhooks::Configuration do
  describe '#register_webhook_handler' do
    it 'only accepts callable' do
      expect{ subject.register_webhook_handler(:foo, Object.new) }.to raise_error(SolidusWebhooks::InvalidHandler)
      expect{ subject.register_webhook_handler(:bar, Proc.new {}) }.not_to raise_error
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_webhooks-0.3.0 spec/solidus_webhooks/configuration_spec.rb