diff --git a/spec/mosquito/backend/overseer_spec.cr b/spec/mosquito/backend/overseer_spec.cr index 4bf9bd7..d941135 100644 --- a/spec/mosquito/backend/overseer_spec.cr +++ b/spec/mosquito/backend/overseer_spec.cr @@ -2,11 +2,13 @@ require "../../spec_helper" describe Mosquito::Backend do it "can keep a list of overseers" do - overseer_ids = ["overseer1", "overseer2", "overseer3"] - overseer_ids.each do |overseer_id| - Mosquito.backend.register_overseer overseer_id - end + clean_slate do + overseer_ids = ["overseer1", "overseer2", "overseer3"] + overseer_ids.each do |overseer_id| + Mosquito.backend.register_overseer overseer_id + end - assert_equal overseer_ids, Mosquito.backend.list_overseers + assert_equal overseer_ids, Mosquito.backend.list_overseers + end end end