Remove no longer neccesary feature flags from valuation feature spec
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user