mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 01:26:18 -05:00
More randomly failing specs fixes.
This commit is contained in:
parent
1b2b142f30
commit
35bc0c943f
1 changed files with 2 additions and 2 deletions
|
@ -38,11 +38,11 @@ describe DiscoursePlugin do
|
|||
context 'registering for callbacks' do
|
||||
before do
|
||||
plugin.stubs(:hello)
|
||||
plugin.listen_for(:hello)
|
||||
@proc = plugin.listen_for(:hello).first
|
||||
end
|
||||
|
||||
after do
|
||||
DiscourseEvent.off(:hello)
|
||||
DiscourseEvent.off(:hello, &@proc)
|
||||
end
|
||||
|
||||
it "calls the method when it is triggered" do
|
||||
|
|
Loading…
Reference in a new issue