fix the regexp used to valide user's website

This commit is contained in:
Régis Hanol
2017-08-02 10:19:24 +02:00
parent 2f36b7eae1
commit e43799134c
2 changed files with 2 additions and 1 deletions

View File

@ -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