Created
August 14, 2014 09:31
-
-
Save seban/1ffd9847a75bcef6328d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Profile < ActiveRecord::Base | |
validates :facebook_profile, url: { allow_blank: true } | |
end | |
# failing spec | |
specify "www.facebook.com/username should be valid facebook profile url" do | |
profile.facebook_profile = "www.facebook.com/username" | |
expect(profile).to be_valid | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment