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
Remove obsolete tests
Henriette Dingerd680b329c5fb
diff --git a/modules/grids/spec/lib/api/v3/grids/schemas/grid_schema_representer_spec.rb b/modules/grids/spec/lib/api/v3/grids/schemas/grid_schema_representer_spec.rbindex 98344482cca..e4c2f7e2322 100644--- a/modules/grids/spec/lib/api/v3/grids/schemas/grid_schema_representer_spec.rb+++ b/modules/grids/spec/lib/api/v3/grids/schemas/grid_schema_representer_spec.rb@@ -94,8 +94,6 @@ describe ::API::V3::Grids::Schemas::GridSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'rowCount' do@@ -107,8 +105,6 @@ describe ::API::V3::Grids::Schemas::GridSchemaRepresenter dolet(:required) { true }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'columnCount' do@@ -120,8 +116,6 @@ describe ::API::V3::Grids::Schemas::GridSchemaRepresenter dolet(:required) { true }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'createdAt' do@@ -133,8 +127,6 @@ describe ::API::V3::Grids::Schemas::GridSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'updatedAt' do@@ -146,8 +138,6 @@ describe ::API::V3::Grids::Schemas::GridSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'widgets' dodiff --git a/spec/lib/api/v3/memberships/schemas/membership_schema_representer_spec.rb b/spec/lib/api/v3/memberships/schemas/membership_schema_representer_spec.rbindex 60f28ac8bd1..bda4882cbff 100644--- a/spec/lib/api/v3/memberships/schemas/membership_schema_representer_spec.rb+++ b/spec/lib/api/v3/memberships/schemas/membership_schema_representer_spec.rb@@ -96,8 +96,6 @@ describe ::API::V3::Memberships::Schemas::MembershipSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'createdAt' do@@ -109,8 +107,6 @@ describe ::API::V3::Memberships::Schemas::MembershipSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'project' dodiff --git a/spec/lib/api/v3/projects/schemas/project_schema_representer_spec.rb b/spec/lib/api/v3/projects/schemas/project_schema_representer_spec.rbindex 12928d33bbf..bd6a101a87b 100644--- a/spec/lib/api/v3/projects/schemas/project_schema_representer_spec.rb+++ b/spec/lib/api/v3/projects/schemas/project_schema_representer_spec.rb@@ -100,8 +100,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'name' do@@ -118,8 +116,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:min_length) { 1 }let(:max_length) { 255 }end-- it_behaves_like 'has no visibility property'enddescribe 'identifier' do@@ -136,8 +132,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:min_length) { 1 }let(:max_length) { 100 }end-- it_behaves_like 'has no visibility property'enddescribe 'description' do@@ -149,8 +143,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:required) { false }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'public' do@@ -162,8 +154,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:required) { true }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'active' do@@ -175,8 +165,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:required) { true }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'statusExplanation' do@@ -222,8 +210,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'updatedAt' do@@ -235,8 +221,6 @@ describe ::API::V3::Projects::Schemas::ProjectSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'int custom field' dodiff --git a/spec/lib/api/v3/queries/schemas/query_filter_instance_schema_representer_spec.rb b/spec/lib/api/v3/queries/schemas/query_filter_instance_schema_representer_spec.rbindex bf5f6bb7fc7..d106f086b5b 100644--- a/spec/lib/api/v3/queries/schemas/query_filter_instance_schema_representer_spec.rb+++ b/spec/lib/api/v3/queries/schemas/query_filter_instance_schema_representer_spec.rb@@ -105,8 +105,6 @@ describe ::API::V3::Queries::Schemas::QueryFilterInstanceSchemaRepresenter, clealet(:writable) { false }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'filter' do@@ -119,8 +117,6 @@ describe ::API::V3::Queries::Schemas::QueryFilterInstanceSchemaRepresenter, clealet(:writable) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -150,8 +146,6 @@ describe ::API::V3::Queries::Schemas::QueryFilterInstanceSchemaRepresenter, clealet(:writable) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' dodiff --git a/spec/lib/api/v3/queries/schemas/query_schema_representer_spec.rb b/spec/lib/api/v3/queries/schemas/query_schema_representer_spec.rbindex 310d6b887b0..3861be64b0a 100644--- a/spec/lib/api/v3/queries/schemas/query_schema_representer_spec.rb+++ b/spec/lib/api/v3/queries/schemas/query_schema_representer_spec.rb@@ -112,8 +112,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'name' do@@ -130,8 +128,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:min_length) { 1 }let(:max_length) { 255 }end-- it_behaves_like 'has no visibility property'enddescribe 'createdAt' do@@ -143,8 +139,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'updatedAt' do@@ -156,8 +150,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'user' do@@ -170,8 +162,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { false }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'project' do@@ -184,8 +174,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -208,8 +196,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:has_default) { true }end- it_behaves_like 'has no visibility property'-context 'when having the :manage_public_queries permission' dobefore doallow(user)@@ -248,8 +234,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'timelineVisible' do@@ -262,8 +246,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'timelineZoomLevel' do@@ -276,8 +258,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'timelineLabels' do@@ -290,8 +270,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'show hierarchies' do@@ -304,8 +282,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'starred' do@@ -318,8 +294,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { false }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'highlighting_mode' do@@ -332,8 +306,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'display_representation' do@@ -346,8 +318,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }let(:has_default) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'columns' do@@ -361,8 +331,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:has_default) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -441,8 +409,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:has_default) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when global query' do@@ -477,8 +443,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:writable) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -511,8 +475,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:has_default) { true }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -553,8 +515,6 @@ describe ::API::V3::Queries::Schemas::QuerySchemaRepresenter dolet(:required) { false }let(:writable) { false }end-- it_behaves_like 'has no visibility property'endenddiff --git a/spec/lib/api/v3/support/api_v3_filter_dependency.rb b/spec/lib/api/v3/support/api_v3_filter_dependency.rbindex 7ae6f87f753..2bffd0ab592 100644--- a/spec/lib/api/v3/support/api_v3_filter_dependency.rb+++ b/spec/lib/api/v3/support/api_v3_filter_dependency.rb@@ -34,8 +34,6 @@ shared_examples_for 'filter dependency' dolet(:has_default) { false }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -53,8 +51,6 @@ shared_examples_for 'filter dependency with allowed link' dolet(:has_default) { false }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' do@@ -72,8 +68,6 @@ shared_examples_for 'filter dependency with allowed value link collection' dolet(:has_default) { false }end- it_behaves_like 'has no visibility property'-it_behaves_like 'does not link to allowed values'context 'when embedding' dodiff --git a/spec/lib/api/v3/support/schema_examples.rb b/spec/lib/api/v3/support/schema_examples.rbindex 4eefa4ca471..04d01e19135 100644--- a/spec/lib/api/v3/support/schema_examples.rb+++ b/spec/lib/api/v3/support/schema_examples.rb@@ -86,13 +86,6 @@ shared_examples_for 'indicates length requirements' doendend-shared_examples_for 'has no visibility property' do- it 'has no path' do- is_expected- .not_to have_json_path("#{path}/visibility")- end-end-shared_examples_for 'links to allowed values directly' doit 'has the expected number of links' dois_expected.to have_json_size(hrefs.size).at_path("#{path}/_links/allowedValues")diff --git a/spec/lib/api/v3/versions/schemas/version_schema_representer_spec.rb b/spec/lib/api/v3/versions/schemas/version_schema_representer_spec.rbindex 63c241de21e..68be2ec027a 100644--- a/spec/lib/api/v3/versions/schemas/version_schema_representer_spec.rb+++ b/spec/lib/api/v3/versions/schemas/version_schema_representer_spec.rb@@ -98,8 +98,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'createdAt' do@@ -111,8 +109,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'updatedAt' do@@ -124,8 +120,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:required) { true }let(:writable) { false }end-- it_behaves_like 'has no visibility property'enddescribe 'name' do@@ -142,8 +136,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:min_length) { 1 }let(:max_length) { 60 }end-- it_behaves_like 'has no visibility property'enddescribe 'description' do@@ -155,8 +147,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:required) { false }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'int custom field' do@@ -179,8 +169,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:required) { false }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'endDate' do@@ -192,8 +180,6 @@ describe ::API::V3::Versions::Schemas::VersionSchemaRepresenter dolet(:required) { false }let(:writable) { true }end-- it_behaves_like 'has no visibility property'enddescribe 'definingProject' do