Skip to content

Commit

Permalink
fix destroy test for lantern_doctor_nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed May 6, 2024
1 parent c22a2dc commit 81a887a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/prog/lantern/lantern_doctor_nexus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
describe "#destroy" do
it "exits with message" do
expect(nx).to receive(:decr_destroy)
page = instance_double(Page)
query = instance_double(LanternDoctorQuery, active_pages: [page])
expect(page).to receive(:incr_resolve)
expect(lantern_doctor).to receive(:failed_queries).and_return([query])
expect(lantern_doctor).to receive(:destroy)
expect { nx.destroy }.to exit({"msg" => "lantern doctor is deleted"})
end
Expand Down

0 comments on commit 81a887a

Please sign in to comment.