Skip to content

A platform for community discussion. Free, open, simple.

DEV: Make spec less brittle.

Guo Xiang Tanb4ef7dfe9a02
diff --git a/spec/models/post_mover_spec.rb b/spec/models/post_mover_spec.rb
index 83d6a68d511..a73df3411a4 100644
--- a/spec/models/post_mover_spec.rb
+++ b/spec/models/post_mover_spec.rb
@@ -188,7 +188,7 @@ describe PostMover do
expect(new_topic.like_count).to eq(1)
expect(new_topic.category).to eq(category)
- expect(new_topic.tags.pluck(:name)).to eq(["tag1", "tag2"])
+ expect(new_topic.tags.pluck(:name)).to contain_exactly("tag1", "tag2")
expect(topic.featured_user1_id).to be_blank
expect(new_topic.posts.by_post_number).to match_array([p2, p4])