From 54a2264a0eac739eb3db42c335a31791cd5eb484 Mon Sep 17 00:00:00 2001 From: Don Petersen Date: Wed, 12 Nov 2014 22:36:46 +0000 Subject: [PATCH] Silence some rspec deprecation warnings. --- spec/models/service_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index e115a12..693f856 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -119,7 +119,7 @@ describe '#load' do before do allow(Fleet).to receive(:new) { fake_fleet_client } - subject.stub(:service_def).and_return({}) + allow(subject).to receive(:service_def).and_return({}) end it 'sends the id and service_def to the fleet client' do @@ -132,7 +132,7 @@ describe '#refresh' do before do allow(Fleet).to receive(:new) { fake_fleet_client } - fake_fleet_client.stub(:status).and_return(active_state: 'active', + allow(fake_fleet_client).to receive(:status).and_return(active_state: 'active', load_state: 'loaded', sub_state: 'running', machine_state: 'wtf')