mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: Clean up after adding events. Fixes random test failures.
This commit is contained in:
parent
25daca8f23
commit
3b68214210
@ -14,6 +14,10 @@ describe DiscoursePlugin do
|
||||
let(:registry) { mock }
|
||||
let(:plugin) { TestPlugin.new(registry) }
|
||||
|
||||
after do
|
||||
DiscourseEvent.clear
|
||||
end
|
||||
|
||||
describe ".mixins" do
|
||||
it "finds its mixins" do
|
||||
expect(TestPlugin.mixins).to eq([TestPlugin::TestMixin])
|
||||
|
@ -55,6 +55,10 @@ describe Plugin::Instance do
|
||||
@serializer = TroutSerializer.new(@trout)
|
||||
end
|
||||
|
||||
after do
|
||||
DiscourseEvent.clear
|
||||
end
|
||||
|
||||
it "checks enabled/disabled functionality for extensions" do
|
||||
|
||||
# with an enabled plugin
|
||||
|
Loading…
Reference in New Issue
Block a user