Fix intermittently failing spec
This commit is contained in:
parent
dac2dd3b25
commit
4add044f86
|
@ -182,11 +182,11 @@ RSpec.describe DiscourseChat::Manager do
|
||||||
let(:category3) {Fabricate(:category)}
|
let(:category3) {Fabricate(:category)}
|
||||||
|
|
||||||
it 'deletes the correct rule' do
|
it 'deletes the correct rule' do
|
||||||
# Three identical rules, with different categories
|
# Three identical rules, with different filters
|
||||||
# Status will be sorted by category id, so they should
|
# Status will be sorted by precedence
|
||||||
# be in this order
|
# be in this order
|
||||||
rule1 = DiscourseChat::Rule.create(channel: chan1,
|
rule1 = DiscourseChat::Rule.create(channel: chan1,
|
||||||
filter: 'watch',
|
filter: 'mute',
|
||||||
category_id: category.id,
|
category_id: category.id,
|
||||||
tags: [tag1.name, tag2.name]
|
tags: [tag1.name, tag2.name]
|
||||||
)
|
)
|
||||||
|
@ -196,7 +196,7 @@ RSpec.describe DiscourseChat::Manager do
|
||||||
tags: [tag1.name, tag2.name]
|
tags: [tag1.name, tag2.name]
|
||||||
)
|
)
|
||||||
rule3 = DiscourseChat::Rule.create(channel: chan1,
|
rule3 = DiscourseChat::Rule.create(channel: chan1,
|
||||||
filter: 'watch',
|
filter: 'follow',
|
||||||
category_id: category3.id,
|
category_id: category3.id,
|
||||||
tags: [tag1.name, tag2.name]
|
tags: [tag1.name, tag2.name]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue