From 3c07270a515483fcf5018b83dbaffef1b8b35bda Mon Sep 17 00:00:00 2001 From: Nicolas Brousse Date: Wed, 10 Jul 2024 16:45:14 +0200 Subject: [PATCH] fix tests --- Gemfile.lock | 2 +- spec/requests/users/settings_request_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index dcf628aa6..0b64908b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -641,7 +641,7 @@ DEPENDENCIES stimulus-rails (~> 1.2) store_attribute (~> 1.2) terser - turbo-rails (~> 2.0) + turbo-rails view_component virtus web-console (>= 4.1.0) diff --git a/spec/requests/users/settings_request_spec.rb b/spec/requests/users/settings_request_spec.rb index c7c182d3c..946480282 100644 --- a/spec/requests/users/settings_request_spec.rb +++ b/spec/requests/users/settings_request_spec.rb @@ -17,7 +17,7 @@ describe "PATCH #update" do subject(:response) do - patch(users_settings_path(user, params:)) + patch(users_settings_path(user), params:) @response # rubocop:disable RSpec/InstanceVariable end @@ -31,7 +31,7 @@ context "with invalid data" do let(:params) { { user: { locale: "test", theme: "yellow" } } } - it { expect(response).to have_http_status(:unprocessable_entity) } + it { expect(response).to have_http_status(:unprocessable_content) } it { expect(response).to render_template(:edit) } end