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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix typo, add mini spec
Tobias Dillmann1387fd3d9698
diff --git a/spec/requests/api/v3/principals/principals_resource_spec.rb b/spec/requests/api/v3/principals/principals_resource_spec.rbindex d42e71f46bd..9c79fef8867 100644--- a/spec/requests/api/v3/principals/principals_resource_spec.rb+++ b/spec/requests/api/v3/principals/principals_resource_spec.rb@@ -144,7 +144,7 @@ RSpec.describe "API v3 Principals resource" do[{ any_name_attribute: { operator: "~", values: ["[email protected]"] } }]end- context "when user havs permission to view user emails" do+ context "when user has permission to view user emails" dolet(:standard_global_role) { create :standard_global_role }it_behaves_like "API V3 collection response", 1, 1, "User"diff --git a/spec/services/users/set_attributes_service_integration_spec.rb b/spec/services/users/set_attributes_service_integration_spec.rbindex ed4f8359baa..50dfd208383 100644--- a/spec/services/users/set_attributes_service_integration_spec.rb+++ b/spec/services/users/set_attributes_service_integration_spec.rb@@ -40,6 +40,16 @@ RSpec.describe Users::SetAttributesService, "Integration", type: :model dosubject { instance.call(params) }+ context "with a boolean castable preference" do+ let(:params) do+ { pref: { warn_on_leaving_unsaved: "0" } }+ end++ it "returns no error for that" do+ expect(subject.errors).to be_empty+ end+ end+context "with an invalid parameter" dolet(:params) do{ pref: { workdays: "foobar" } }