Sha256: 689c717ec2f295e79d6a86f19ce8e755e13ac44bca4c6d1fd4aa12905ca5d8e6
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 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 {}) }.not_to raise_error end end end
Version data entries
3 entries across 3 versions & 1 rubygems