Make champ PJ generally available
This commit is contained in:
parent
64d32c6afc
commit
57a136c861
5 changed files with 12 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue