Sha256: 311e54cdba3d9fcd95b60bbfc7594aeee8746e4d55c099769a0c2ac0c4233503
Contents?: true
Size: 724 Bytes
Versions: 4
Compression:
Stored size: 724 Bytes
Contents
require 'spec_helper' module RabbitFeed describe Event do let(:schema) { double(:schema) } let(:payload) { { 'customer_id' => '123' } } subject { described_class.new schema, payload } describe '.new' do it { should be_valid } its(:schema) { should eq schema } its(:payload) { should eq({ 'customer_id' => '123' }) } context 'when schema is nil' do let(:schema) {} it 'should raise an error' do expect{ subject }.to raise_error Error end end context 'when payload is nil' do let(:payload) {} it 'should raise an error' do expect{ subject }.to raise_error Error end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems