Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Changed condition 404 -> 200

Oliver Günther25bf47039e09
diff --git a/spec/components/users/profile/attributes_component_spec.rb b/spec/components/users/profile/attributes_component_spec.rb
index 8195719d7c0..643ff5472a7 100644
--- a/spec/components/users/profile/attributes_component_spec.rb
+++ b/spec/components/users/profile/attributes_component_spec.rb
@@ -73,7 +73,7 @@ RSpec.describe Users::Profile::AttributesComponent, type: :component do
describe "Custom fields" do
let(:custom_field) { create(:user_custom_field, :string, visible:) }
let(:user) { build_stubbed(:user, custom_values: [build(:custom_value, custom_field:, value: "Hello custom field")]) }
-
+
current_user { build(:admin) }
before do
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb
index 30719976b88..5ecbba1e783 100644
--- a/spec/controllers/users_controller_spec.rb
+++ b/spec/controllers/users_controller_spec.rb
@@ -890,9 +890,9 @@ RSpec.describe UsersController do
end
context "when not login_required", with_settings: { login_required: false } do
- it "responds with 404" do
+ it "responds with 200" do
expect(response)
- .to have_http_status(:not_found)
+ .to have_http_status(:ok)
end
end