From 59bc2ccc331118b4611e0b9c58aa7800a4a74a04 Mon Sep 17 00:00:00 2001 From: Oluwatoyosi Oyegoke <34948675+Tooyosi@users.noreply.github.com> Date: Wed, 19 Jun 2024 01:18:08 +0100 Subject: [PATCH] rails 5.0 upgrade: make content-type header application/json (#325) --- spec/support/shared_examples_for_controller_updating.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/shared_examples_for_controller_updating.rb b/spec/support/shared_examples_for_controller_updating.rb index c02f8e64..f3ba1f2d 100644 --- a/spec/support/shared_examples_for_controller_updating.rb +++ b/spec/support/shared_examples_for_controller_updating.rb @@ -8,6 +8,7 @@ before :each do allow(subject).to receive(:current_user).and_return current_user + request.headers['CONTENT_TYPE'] = 'application/json' end describe '#update' do