Skip to content

Commit f74bcd8

Browse files
committed
[#68700] add enterprise switch to test setups
1 parent d46545e commit f74bcd8

File tree

14 files changed

+52
-17
lines changed

14 files changed

+52
-17
lines changed

spec/features/admin/custom_fields/projects/calculated_value_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
require "spec_helper"
3232
require_relative "shared_context"
3333

34-
RSpec.describe "Edit project custom field calculated value", :js,
34+
RSpec.describe "Edit project custom field calculated value",
35+
:js,
36+
with_ee: %i[calculated_values],
3537
with_flag: { calculated_value_project_attribute: true } do
3638
include_context "with seeded project custom fields"
3739

spec/features/projects/lists/columns_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@
401401
end
402402
end
403403

404-
context "with calculated value columns", with_flag: { calculated_value_project_attribute: true } do
404+
context "with calculated value columns",
405+
with_ee: %i[calculated_values],
406+
with_flag: { calculated_value_project_attribute: true } do
405407
let!(:static_calculated_value) do
406408
create(:calculated_value_project_custom_field,
407409
name: "Calculated value field",

spec/features/projects/lists/filters_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,9 @@ def load_and_open_filters(user)
679679
end
680680
end
681681

682-
context "when filtering via calculated values", with_flag: { calculated_value_project_attribute: true } do
682+
context "when filtering via calculated values",
683+
with_ee: %i[calculated_values],
684+
with_flag: { calculated_value_project_attribute: true } do
683685
let(:projects_with_calculated_value) do
684686
[project, public_project]
685687
end

spec/features/projects/lists/order_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@
273273
projects_page.expect_project_at_place(project, 1)
274274
end
275275

276-
context "when sorting calculated value custom fields", with_flag: { calculated_value_project_attribute: true } do
276+
context "when sorting calculated value custom fields",
277+
with_ee: %i[calculated_values],
278+
with_flag: { calculated_value_project_attribute: true } do
277279
let(:projects_with_calculated_value) do
278280
[project, development_project, public_project, child_project_m, child_project_a]
279281
end

spec/features/projects/project_custom_fields/settings/mapping_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,9 @@
406406
end
407407
end
408408

409-
describe "calculated value fields", with_flag: { calculated_value_project_attribute: true } do
409+
describe "calculated value fields",
410+
with_ee: %i[calculated_values],
411+
with_flag: { calculated_value_project_attribute: true } do
410412
let!(:admin) do
411413
create(:admin)
412414
end

spec/forms/projects/settings/custom_fields_form_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
#
3131
require "spec_helper"
3232

33-
RSpec.describe Projects::Settings::CustomFieldsForm, type: :forms, with_flag: { calculated_value_project_attribute: true } do
33+
RSpec.describe Projects::Settings::CustomFieldsForm,
34+
type: :forms,
35+
with_ee: %i[calculated_values],
36+
with_flag: { calculated_value_project_attribute: true } do
3437
let(:string_project_custom_field) { create(:string_project_custom_field, name: "String field", is_required: true) }
3538
let(:boolean_project_custom_field) { create(:boolean_project_custom_field, name: "Boolean field", is_required: true) }
3639
let(:text_project_custom_field) { create(:text_project_custom_field, name: "Text field", is_required: true) }

spec/models/projects/customizable_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@
199199
.to contain_exactly(text_custom_field, bool_custom_field)
200200
end
201201

202-
describe "#valid?", with_flag: { calculated_value_project_attribute: true } do
202+
describe "#valid?",
203+
with_ee: %i[calculated_values],
204+
with_flag: { calculated_value_project_attribute: true } do
203205
let(:another_section) { create(:project_custom_field_section) }
204206
let(:project) do
205207
build(:project, custom_field_values: {
@@ -370,7 +372,9 @@
370372
.to eq("bar")
371373
end
372374

373-
describe "#valid?", with_flag: { calculated_value_project_attribute: true } do
375+
describe "#valid?",
376+
with_ee: %i[calculated_values],
377+
with_flag: { calculated_value_project_attribute: true } do
374378
let!(:project) do
375379
create(:project, custom_field_values: {
376380
text_custom_field.id => "foo",

spec/services/project_custom_field_project_mappings/bulk_create_service_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
let(:required_permission) { :select_project_custom_fields }
4242
end
4343

44-
describe "calculated values", with_flag: { calculated_value_project_attribute: true } do
44+
describe "calculated values",
45+
with_ee: %i[calculated_values],
46+
with_flag: { calculated_value_project_attribute: true } do
4547
using CustomFieldFormulaReferencing
4648

4749
shared_let(:user) { create(:admin) }

spec/services/project_custom_field_project_mappings/bulk_update_service_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@
147147
end
148148
end
149149

150-
describe "calculated values", with_flag: { calculated_value_project_attribute: true } do
150+
describe "calculated values",
151+
with_ee: %i[calculated_values],
152+
with_flag: { calculated_value_project_attribute: true } do
151153
using CustomFieldFormulaReferencing
152154

153155
shared_let(:user) { create(:admin) }

spec/services/project_custom_field_project_mappings/delete_service_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
end
4040
end
4141

42-
describe "calculated values", with_flag: { calculated_value_project_attribute: true } do
42+
describe "calculated values",
43+
with_ee: %i[calculated_values],
44+
with_flag: { calculated_value_project_attribute: true } do
4345
using CustomFieldFormulaReferencing
4446

4547
shared_let(:user) { create(:admin) }

0 commit comments

Comments
 (0)