diff --git a/.env.example b/.env.example index db5f98326..8ded20e56 100644 --- a/.env.example +++ b/.env.example @@ -3,9 +3,6 @@ # AWS_S3_SECRET_ACCESS_KEY= # AWS_S3_BUCKET= -FEATURE_SYSTEM_TEST=true -FEATURE_INVITATION=true - # If you are using docker to manage your postgresql database, # you will want to uncomment these # PGHOST=localhost diff --git a/app.json b/app.json index cfd9dd1d2..2872f4930 100644 --- a/app.json +++ b/app.json @@ -38,10 +38,6 @@ } }, "env": { - "FEATURE_SYSTEM_TEST": { - "description": "Seed Test data", - "value": "true" - }, "LOCKBOX_MASTER_KEY": { "description": "Encrypts data within the database", "generator": "secret" diff --git a/app/models/feature.rb b/app/models/feature.rb deleted file mode 100644 index 0bb78b0fb..000000000 --- a/app/models/feature.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -# An internal Microlibrary for feature flagging to help avoid -# sprinkling `ENV` calls throughout the codebase. -class Feature - # @param [String, #to_s] feature Name of the feature we're flagging - # @return [TrueClass, FalseClass] - def self.enabled?(feature) - feature = feature.to_s if feature.respond_to?(:to_s) - - ENV.fetch("FEATURE_#{feature.upcase}", "false") == "true" - end -end diff --git a/spec/models/feature_spec.rb b/spec/models/feature_spec.rb deleted file mode 100644 index 88d24f308..000000000 --- a/spec/models/feature_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require "rails_helper" -RSpec.describe Feature do - subject(:feature) { described_class } - - describe ".enabled?(feature_name)" do - before { stub_const("ENV", "FEATURE_FOO" => "true", "FEATURE_BAR" => "yes") } - - it { is_expected.to be_enabled(:foo) } - it { is_expected.not_to be_enabled(:bar) } - it { is_expected.not_to be_enabled(:baz) } - end -end