Skip to content

Commit

Permalink
Merge pull request #274 from DropsOfSerenity/master
Browse files Browse the repository at this point in the history
For rspec, clear in the around block instead of the before block
  • Loading branch information
guilleiguaran committed Apr 22, 2024
2 parents f0abc00 + b4959e3 commit c28f7ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fakeredis/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

RSpec.configure do |c|

c.before do
c.around do |ex|
Redis::Connection::Memory.reset_all_databases
Redis::Connection::Memory.reset_all_channels
ex.run
end

end

0 comments on commit c28f7ac

Please sign in to comment.