spec/adhearsion/asterisk/plugin_spec.rb in adhearsion-asterisk-1.3.1 vs spec/adhearsion/asterisk/plugin_spec.rb in adhearsion-asterisk-1.4.0
- old
+ new
@@ -2,10 +2,10 @@
module Adhearsion::Asterisk
describe 'plugin loading' do
before(:all) { Adhearsion::Plugin.init_plugins }
- let(:mock_call) { stub_everything 'Call' }
+ let(:mock_call) { mock(:call).as_null_object }
it 'should extend Adhearsion::CallController with Asterisk methods' do
Adhearsion::CallController.new(mock_call).should respond_to :play_time
end
end