Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-brousse committed Jul 10, 2024
1 parent b0e7e11 commit 3c07270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions spec/requests/users/settings_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 3c07270

Please sign in to comment.