More randomly failing specs fixes.
This commit is contained in:
parent
1b2b142f30
commit
35bc0c943f
|
@ -38,11 +38,11 @@ describe DiscoursePlugin do
|
||||||
context 'registering for callbacks' do
|
context 'registering for callbacks' do
|
||||||
before do
|
before do
|
||||||
plugin.stubs(:hello)
|
plugin.stubs(:hello)
|
||||||
plugin.listen_for(:hello)
|
@proc = plugin.listen_for(:hello).first
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
after do
|
||||||
DiscourseEvent.off(:hello)
|
DiscourseEvent.off(:hello, &@proc)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "calls the method when it is triggered" do
|
it "calls the method when it is triggered" do
|
||||||
|
|
Loading…
Reference in New Issue