1
0
mirror of synced 2026-08-05 22:56:57 +00:00

Fix intermittently failing spec

This commit is contained in:
David Taylor
2017-07-26 21:14:29 +01:00
parent dac2dd3b25
commit 4add044f86
+4 -4
View File
@@ -182,11 +182,11 @@ RSpec.describe DiscourseChat::Manager do
let(:category3) {Fabricate(:category)}
it 'deletes the correct rule' do
# Three identical rules, with different categories
# Status will be sorted by category id, so they should
# Three identical rules, with different filters
# Status will be sorted by precedence
# be in this order
rule1 = DiscourseChat::Rule.create(channel: chan1,
filter: 'watch',
filter: 'mute',
category_id: category.id,
tags: [tag1.name, tag2.name]
)
@@ -196,7 +196,7 @@ RSpec.describe DiscourseChat::Manager do
tags: [tag1.name, tag2.name]
)
rule3 = DiscourseChat::Rule.create(channel: chan1,
filter: 'watch',
filter: 'follow',
category_id: category3.id,
tags: [tag1.name, tag2.name]
)