Created
September 13, 2013 21:13
-
-
Save dougiebuckets/6556159 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
require 'spec_helper' | |
describe "User" do | |
it "should require a phone number" do | |
user = create(:user).should be_valid | |
end | |
it "should require a valid 10 digit phone number" do | |
user = create(:user).should be_valid | |
end | |
it { should validate_uniqueness_of(:phone_number) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment