Manage proposal milestones

This commit is contained in:
Javi Martín
2018-11-15 15:11:36 +01:00
parent 8c45be7887
commit 2fcbee6261
10 changed files with 33 additions and 1 deletions

View File

@@ -3,6 +3,10 @@ require 'rails_helper'
feature 'Proposals' do
it_behaves_like "milestoneable",
:proposal,
"proposal_path"
scenario 'Disabled with a feature flag' do
Setting['feature.proposals'] = nil
expect{ visit proposals_path }.to raise_exception(FeatureFlags::FeatureDisabled)