Clean up Asana integration specs
What does this MR do and why?
This is a cleanup of the Asana integrations tests. It:
- Changes
let
tolet_it_be
where database records are created. - Replaces the
create_data_for_commits
method withlet(:data)
. - Wraps test cases in
context
blocks, so the test setup can be moved outside the examples.
Why is this change necessary
I started to look into #349359 (closed) (confidential) and through about it can be covered by a test. Adding a new test case will be easier when the contexts are used.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.