Fix random spec failures

This commit is contained in:
Arpit Jalan 2018-03-19 15:24:17 +05:30
parent 05ea034490
commit 5005482dd8
1 changed files with 1 additions and 2 deletions

View File

@ -123,8 +123,7 @@ describe Tag do
SiteSetting.allow_staff_to_tag_pms = true
tags = described_class.pm_tags(guardian: Guardian.new(admin), allowed_user: regular_user)
expect(tags.length).to eq(2)
expect(tags[0][:id]).to eq("tag-0")
expect(tags[1][:text]).to eq("tag-1")
expect(tags.map { |t| t[:id] }).to contain_exactly("tag-0", "tag-1")
end
end