From cc1de3474147454821e22b292d05d01368db2fcf Mon Sep 17 00:00:00 2001 From: James Rose Date: Fri, 31 Mar 2023 13:11:05 +0100 Subject: [PATCH] Enable managing_owning_enabled? and managing_for_other_user_enabled? feature flags on all environments (#1502) * Enable managing_owning_enabled? feature flag on all environments * Enable managing_for_other_user_enabled? feature flag --- config/initializers/feature_toggle.rb | 4 ++-- .../form/lettings/subsections/setup_spec.rb | 23 ------------------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/config/initializers/feature_toggle.rb b/config/initializers/feature_toggle.rb index 11f83e621..6e4ac0511 100644 --- a/config/initializers/feature_toggle.rb +++ b/config/initializers/feature_toggle.rb @@ -21,7 +21,7 @@ class FeatureToggle end def self.managing_owning_enabled? - !Rails.env.production? + true end def self.scheme_toggle_enabled? @@ -33,7 +33,7 @@ class FeatureToggle end def self.managing_for_other_user_enabled? - !Rails.env.production? + true end def self.bulk_upload_logs? diff --git a/spec/models/form/lettings/subsections/setup_spec.rb b/spec/models/form/lettings/subsections/setup_spec.rb index 5432beab7..d7da750a8 100644 --- a/spec/models/form/lettings/subsections/setup_spec.rb +++ b/spec/models/form/lettings/subsections/setup_spec.rb @@ -56,27 +56,4 @@ RSpec.describe Form::Lettings::Subsections::Setup, type: :model do ) end end - - context "when production" do - before do - allow(Rails.env).to receive(:production?).and_return(true) - end - - it "has the correct pages" do - expect(setup.pages.map(&:id)).to eq( - %w[ - organisation - created_by - needs_type - scheme - location - renewal - tenancy_start_date - rent_type - tenant_code - property_reference - ], - ) - end - end end