mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 05:59:25 +08: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(:registry) { mock }
|
||||||
let(:plugin) { TestPlugin.new(registry) }
|
let(:plugin) { TestPlugin.new(registry) }
|
||||||
|
|
||||||
|
after do
|
||||||
|
DiscourseEvent.clear
|
||||||
|
end
|
||||||
|
|
||||||
describe ".mixins" do
|
describe ".mixins" do
|
||||||
it "finds its mixins" do
|
it "finds its mixins" do
|
||||||
expect(TestPlugin.mixins).to eq([TestPlugin::TestMixin])
|
expect(TestPlugin.mixins).to eq([TestPlugin::TestMixin])
|
||||||
|
@ -55,6 +55,10 @@ describe Plugin::Instance do
|
|||||||
@serializer = TroutSerializer.new(@trout)
|
@serializer = TroutSerializer.new(@trout)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after do
|
||||||
|
DiscourseEvent.clear
|
||||||
|
end
|
||||||
|
|
||||||
it "checks enabled/disabled functionality for extensions" do
|
it "checks enabled/disabled functionality for extensions" do
|
||||||
|
|
||||||
# with an enabled plugin
|
# with an enabled plugin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user