Sha256: c1056241cf6a88c36939205af3ebf3ecfc4da64179eba0d9ab659060bea57992
Contents?: true
Size: 699 Bytes
Versions: 8
Compression:
Stored size: 699 Bytes
Contents
require 'spec_helper' describe Log do context 'the call matches an existing method of an ancestor of Log' do it 'should not redirect it' do allow_message_expectations_on_nil Empezar::Log.instance.should_not_receive :should_receive Log.should_receive :a Log.a end end context 'the call matches nothing' do it 'should redirect random calls to the instance of Empezar::Log' do allow_message_expectations_on_nil Empezar::Log.instance.should_receive :hola Log.hola Empezar::Log.instance.should_receive :aaaaaaaa Log.aaaaaaaa Empezar::Log.instance.should_receive(:oo=).with "hola" Log.oo = "hola" end end end
Version data entries
8 entries across 8 versions & 1 rubygems