Make champ PJ generally available

This commit is contained in:
Frederic Merizen 2018-12-10 19:47:52 +01:00
parent 64d32c6afc
commit 57a136c861
5 changed files with 12 additions and 22 deletions

View file

@ -65,11 +65,11 @@ describe Administrateur, type: :model do
let(:administrateur) { create(:administrateur) }
before do
administrateur.enable_feature(:champ_pj)
administrateur.enable_feature(:test_a)
end
it { expect(administrateur.feature_enabled?(:champ_siret)).to be_falsey }
it { expect(administrateur.feature_enabled?(:champ_pj)).to be_truthy }
it { expect(administrateur.feature_enabled?(:test_b)).to be_falsey }
it { expect(administrateur.feature_enabled?(:test_a)).to be_truthy }
end
describe "#password_complexity" do

View file

@ -107,20 +107,6 @@ describe TypesDeChampService do
subject { service.options }
context "when the champ_pj is enabled" do
before do
Flipflop::FeatureSet.current.test!.switch!(:champ_pj, true)
end
it { is_expected.to include(pj_option) }
end
context "when the champ_pj is disabled" do
before do
Flipflop::FeatureSet.current.test!.switch!(:champ_pj, false)
end
it { is_expected.not_to include(pj_option) }
end
it { is_expected.to include(pj_option) }
end
end