Skip to content

Commit

Permalink
Merge pull request #6 from CenturyLinkLabs/chore/rspec-deprecations
Browse files Browse the repository at this point in the history
Silence some rspec deprecation warnings.
  • Loading branch information
dpetersen committed Nov 26, 2014
2 parents d9b4af0 + 54a2264 commit 0712b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit 0712b5e

Please sign in to comment.