From 78b3aa3fa32fc90383700d6d926895095f4a098c Mon Sep 17 00:00:00 2001 From: Lloyd Watkin Date: Mon, 29 Apr 2024 17:21:09 +0100 Subject: [PATCH] Clear context before test run --- spec/lib/janus/query_director_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/lib/janus/query_director_spec.rb b/spec/lib/janus/query_director_spec.rb index 1bd4fc7..965b2cc 100644 --- a/spec/lib/janus/query_director_spec.rb +++ b/spec/lib/janus/query_director_spec.rb @@ -23,6 +23,10 @@ end describe '#where_to_send?' do + before(:each) do + Janus::Context.release_all + end + context 'when should send to all' do it 'returns :all' do sql = 'SET foo = bar'