Remove no longer neccesary feature flags from valuation feature spec

This commit is contained in:
Bertocq
2018-01-30 12:09:18 +01:00
parent ffe7d4baad
commit b3e7f8a78f

View File

@@ -3,16 +3,7 @@ require 'rails_helper'
feature 'Valuation' do
let(:user) { create(:user) }
background do
Setting['feature.spending_proposals'] = true
Setting['feature.spending_proposal_features.voting_allowed'] = true
end
after do
Setting['feature.spending_proposals'] = nil
Setting['feature.spending_proposal_features.voting_allowed'] = nil
end
context 'Access' do
scenario 'Access as regular user is not authorized' do
login_as(user)
visit root_path
@@ -91,8 +82,9 @@ feature 'Valuation' do
expect(page).to have_current_path(valuation_root_path)
expect(page).not_to have_content "You do not have permission to access this page"
end
end
scenario "Valuation access links" do
scenario 'Valuation access links' do
create(:valuator, user: user)
create(:budget)