Skip to content

Commit

Permalink
rails 5.0 upgrade: make content-type header application/json (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi authored Jun 19, 2024
1 parent 3b19476 commit 59bc2cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/shared_examples_for_controller_updating.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59bc2cc

Please sign in to comment.