Fix intermittently failing spec

This commit is contained in:
David Taylor 2017-07-26 21:14:29 +01:00
parent dac2dd3b25
commit 4add044f86
1 changed files with 4 additions and 4 deletions

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]
)