Skip to content

Commit

Permalink
refactor: Make update ancestors spec more maintainable
Browse files Browse the repository at this point in the history
- Use correct progress terminology in test description.
- Merge tests changing work and remaining work: the tests setup and
  expectations where the same. Only the action differed: one was calling
  the service with `estimated_hours` being modified, the other with
  `remaining_hours` being modified.
- Make tests faster (from 13 secs to 5 secs)
- Introduce `shared_let_work_packages` to create work packages with
  table helpers in a `shared_let` fashion.
- Introduce `for_each_context` which runs the same set of tests with
  different RSpec shared contexts.
  • Loading branch information
cbliard committed Apr 25, 2024
1 parent b3998d3 commit 36faf2d
Show file tree
Hide file tree
Showing 4 changed files with 418 additions and 663 deletions.
Loading

0 comments on commit 36faf2d

Please sign in to comment.