Skip to content

Commit

Permalink
fix oops states spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
0robustus1 authored and eugenk committed May 19, 2015
1 parent c5977bc commit 7f522fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/lib/oops_request/states_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

describe 'OopsRequest::States' do
let(:request) { create :oops_request }
before { allow(request).to receive(:execute_and_save) }

it 'have state pending' do
expect(request.state).to eq('pending')
Expand All @@ -29,7 +28,11 @@
end

context 'without an error' do
before { request.run }
before do
allow(request).to receive(:execute_and_save).
and_return([])
request.run
end

it 'have state done' do
expect(request.state).to eq('done')
Expand Down

0 comments on commit 7f522fb

Please sign in to comment.