mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
fix the regexp used to valide user's website
This commit is contained in:
@ -59,6 +59,7 @@ describe UserProfile do
|
||||
|
||||
it "ensures website is valid" do
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "http://https://google.com")).not_to be_valid
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "http://discourse.productions")).to be_valid
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "https://google.com")).to be_valid
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user