Add feature flag exception for the module polls

This commit is contained in:
Julian Herrero
2020-08-11 11:10:10 +07:00
parent 5d43b632e9
commit d720826e59
4 changed files with 17 additions and 0 deletions

View File

@@ -6,6 +6,11 @@ describe "Admin polls" do
login_as(admin.user)
end
scenario "Disabled with a feature flag" do
Setting["process.polls"] = nil
expect { visit admin_polls_path }.to raise_exception(FeatureFlags::FeatureDisabled)
end
scenario "Index empty", :js do
visit admin_root_path