Sha256: c2adaa201f7ad8fcf084cf1f3d0d9429e03612cb136ce96ae3a86d5356ffd27b
Contents?: true
Size: 548 Bytes
Versions: 14
Compression:
Stored size: 548 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) describe 'received' do it "doesn't throw an error if the invocation occurred" do stub(subject).pig_rabbit subject.pig_rabbit('bacon', 'bunny meat') received(subject).pig_rabbit('bacon', 'bunny meat').call end it "throws a SpyVerificationError if the invocation did not occur" do stub(subject).pig_rabbit expect { received(subject).pig_rabbit('bacon', 'bunny meat').call }.to raise_error(RR::Errors::SpyVerificationErrors::SpyVerificationError) end end
Version data entries
14 entries across 14 versions & 1 rubygems