Skip to content
Commit fcef15af authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Move stub setup outside the test method



Stubs should be restored outside the test method in which they are used
to ensure that they are properly restored no matter the result of the
test (for example, if an exception is thrown).

Besides that, this will make possible to reuse the stub in other sibling
tests without having to explicitly setup it in them.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent d6062195
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment