Skip to content

Commit

Permalink
test: stub class method when check process
Browse files Browse the repository at this point in the history
close #78
  • Loading branch information
TamarinEA committed Oct 1, 2019
1 parent 3dc8094 commit 8fd7efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/treasury/supervisor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let(:supervisor) { described_class.new(supervisor_status) }

describe '#run_initializers' do
before { allow(supervisor).to receive(:process_is_alive?).and_return(false) }
before { allow(supervisor.class).to receive(:process_is_alive?).and_return(false) }

after { supervisor.send(:run_initializers) }

Expand Down

0 comments on commit 8fd7efe

Please sign in to comment.