From b87c5eb1b68d3fe3e4811f5d054a157acd22af4c Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 24 Mar 2017 15:46:42 +0800 Subject: [PATCH] Fix randomly failing spec. --- spec/components/topics_bulk_action_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/topics_bulk_action_spec.rb b/spec/components/topics_bulk_action_spec.rb index 4a0263b3ca7..998f95d5929 100644 --- a/spec/components/topics_bulk_action_spec.rb +++ b/spec/components/topics_bulk_action_spec.rb @@ -228,7 +228,7 @@ describe TopicsBulkAction do topic_ids = tba.perform! expect(topic_ids).to eq([]) topic.reload - expect(topic.tags.map(&:name)).to eq([tag1.name, tag2.name]) + expect(topic.tags.map(&:name)).to contain_exactly(tag1.name, tag2.name) end end end