Move dashboard system tests to resources component specs

We're making the `new_actions_since_last_login` parameter optional in
order to simplify the tests.
This commit is contained in:
taitus
2025-07-02 09:51:22 +02:00
committed by Javi Martín
parent 1dc4f1c534
commit 1e06e676a4
3 changed files with 131 additions and 134 deletions

View File

@@ -1,7 +1,7 @@
class Dashboard::ResourcesComponent < ApplicationComponent
attr_reader :proposal, :new_actions_since_last_login
def initialize(proposal, new_actions_since_last_login)
def initialize(proposal, new_actions_since_last_login = [])
@proposal = proposal
@new_actions_since_last_login = new_actions_since_last_login
end