Make use of fake data in factories

This commit is contained in:
Henne Vogelsang 2016-04-30 17:56:23 +02:00
parent 737a9d4808
commit 77e0340387
30 changed files with 96 additions and 77 deletions

View file

@ -3,8 +3,6 @@ class Contact < ActiveRecord::Base
validates :conference, presence: true
# Conferences only have one contact
validates :conference_id, uniqueness: {message: 'has already contact details'}
validates :facebook, :twitter, :googleplus, :instagram,
format: URI::regexp(%w(http https)), allow_blank: true