Files
grecia/spec/system/valuation/budgets_spec.rb
Senén Rodero Rodríguez 615b249144 Count only the investments visible and assigned to current valuator
It has more sense to show the count of the investments the
valuator is going to find in the investments valuation page.
2023-02-03 11:01:41 +01:00

24 lines
547 B
Ruby

require "rails_helper"
describe "Valuation budgets" do
before { login_as(create(:valuator).user) }
context "Index" do
scenario "Displays published budgets" do
create(:budget, name: "Sports")
create(:budget, name: "Draft", published: false)
visit valuation_budgets_path
expect(page).to have_content("Sports")
expect(page).not_to have_content("Draft")
end
scenario "With no budgets" do
visit valuation_budgets_path
expect(page).to have_content "There are no budgets"
end
end
end