Spec setting up all feature toggle names

This commit is contained in:
Maikel Linke
2023-05-05 11:09:10 +10:00
parent b30e962cdd
commit 2a943ecafb

View File

@@ -18,8 +18,8 @@ describe OpenFoodNetwork::FeatureToggle do
describe ".setup!" do
it "created all current features at boot time" do
expect(Flipper.features.count)
.to eq feature_toggle::CURRENT_FEATURES.count
expect(Flipper.features.map(&:name))
.to match_array feature_toggle::CURRENT_FEATURES.keys
end
it "adds any missing features" do