FIX: do not fallback to flair_url column

flair_url is not loaded by our query anymore so avoid falling back
to the old value
This commit is contained in:
Sam Saffron
2020-05-25 16:25:42 +10:00
parent 47c6fe9bfa
commit c011b817b2
2 changed files with 1 additions and 19 deletions

View File

@ -972,24 +972,6 @@ describe Group do
end
end
it "allows Font Awesome 4.7 syntax as group avatar flair" do
group = Fabricate(:group)
group.flair_url = "fa-air-freshener"
group.save
group = Group.find(group.id)
expect(group.flair_url).to eq("fa-air-freshener")
end
it "allows Font Awesome 5 syntax as group avatar flair" do
group = Fabricate(:group)
group.flair_url = "fab fa-bandcamp"
group.save
group = Group.find(group.id)
expect(group.flair_url).to eq("fab fa-bandcamp")
end
context "Unicode usernames and group names" do
before { SiteSetting.unicode_usernames = true }