Mock health check for Runner management
This commit is contained in:
@ -6,6 +6,8 @@ RSpec.describe PingController do
|
|||||||
render_views
|
render_views
|
||||||
|
|
||||||
describe 'index' do
|
describe 'index' do
|
||||||
|
before { allow(Runner.strategy_class).to receive(:health).and_return(true) }
|
||||||
|
|
||||||
it 'returns the wanted page and answer with HTTP Status 200' do
|
it 'returns the wanted page and answer with HTTP Status 200' do
|
||||||
get :index
|
get :index
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user