Try out before_all helper for spec/controllers
The following discussions from !17680 (merged) should be addressed:
-
@engwan started a discussion: Since the group and user are using
let_it_be
, I think we can do:before_all do group.add_owner(user) end
The
before_all
helper is loaded withlet_it_be
since it is whatlet_it_be
uses under the hood.I'm not sure if
sign_in(user)
can go there too and not cause any complications🤔 -
@engwan started a discussion: Same here, this could be in a
before_all
? -
@engwan started a discussion: This one too
-
@engwan started a discussion: And this. But not too sure about this since I also see
project.add_guest
below which overrides (?) this. -
@engwan started a discussion: And this one
-
@engwan started a discussion: Also this one