Skip to content

Instantly share code, notes, and snippets.

@dougiebuckets
Created September 13, 2013 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougiebuckets/6556159 to your computer and use it in GitHub Desktop.
Save dougiebuckets/6556159 to your computer and use it in GitHub Desktop.
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