Skip to content

test: aumenta cobertura do sessions controller - #69

Merged
Anarayssa-dev merged 2 commits into
sprint-3from
test/issue-59
Jun 30, 2026
Merged

test: aumenta cobertura do sessions controller#69
Anarayssa-dev merged 2 commits into
sprint-3from
test/issue-59

Conversation

@anamattos2

Copy link
Copy Markdown
Collaborator

Objetivo

Aumentar a cobertura de testes do app/controllers/sessions_controller.rb para mais de 90%, conforme issue #59.

Alterações realizadas

  • Adicionado teste de logout para usuário autenticado.
  • Coberto o fluxo DELETE /logout, responsável por executar SessionsController#destroy.
  • Validado o redirecionamento para login_path após o logout.

Evidências

Testes

bundle exec rspec spec/system/login_spec.rb

@Anarayssa-dev Anarayssa-dev added this to the sprint-3 milestone Jun 30, 2026
@Anarayssa-dev Anarayssa-dev linked an issue Jun 30, 2026 that may be closed by this pull request
@Anarayssa-dev
Anarayssa-dev merged commit a296a30 into sprint-3 Jun 30, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Projeto EngSw - Grupo 1 Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Test] Cobertura > 90% em controllers/sessions_controller.rb

2 participants