diff --git a/app/views/shared/_admin_login_items.html.erb b/app/views/shared/_admin_login_items.html.erb
index 013320f38..1d7c7f188 100644
--- a/app/views/shared/_admin_login_items.html.erb
+++ b/app/views/shared/_admin_login_items.html.erb
@@ -11,7 +11,8 @@
<% end %>
- <% if feature?(:spending_proposals) && (current_user.administrator? || current_user.valuator?) %>
+ <% if (feature?(:spending_proposals) || feature?(:budgets)) &&
+ (current_user.administrator? || current_user.valuator?) %>
<%= link_to t("layouts.header.valuation"), valuation_root_path %>
diff --git a/spec/features/valuation/budget_investments_spec.rb b/spec/features/valuation/budget_investments_spec.rb
index bac7d1fe2..f6e930cc6 100644
--- a/spec/features/valuation/budget_investments_spec.rb
+++ b/spec/features/valuation/budget_investments_spec.rb
@@ -13,6 +13,12 @@ feature 'Valuation budget investments' do
expect{ visit valuation_budget_budget_investments_path(create(:budget)) }.to raise_exception(FeatureFlags::FeatureDisabled)
end
+ scenario 'Display link to valuation section' do
+ Setting['feature.budgets'] = true
+ visit root_path
+ expect(page).to have_link "Valuation", href: valuation_root_path
+ end
+
scenario 'Index shows budget investments assigned to current valuator' do
investment1 = create(:budget_investment, budget: @budget)
investment2 = create(:budget_investment, budget: @budget)