test: reset Current.user before each example (#8126)

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Shivam Mishra
2023-10-18 04:12:45 +05:30
committed by GitHub
parent 6b2ed4fe79
commit c20415f3ba

View File

@@ -9,6 +9,8 @@ describe ActionCableListener do
before do
create(:inbox_member, inbox: inbox, user: agent)
Current.user = nil
Current.account = nil
end
describe '#message_created' do