added email presence validation to openid

closes #1658

added test for openid

fixed robocup offences

written tests for email presence validation

minor changes

shifted omniauth callback tests to rspec controllers

fixed linting bug

minor changes

minor changes
This commit is contained in:
ViditChitkara 2017-10-21 02:38:41 +05:30 committed by Stella Rouzi
parent 2df8adea69
commit 83053f4626
5 changed files with 62 additions and 1 deletions

View file

@ -1,6 +1,6 @@
class Openid < ApplicationRecord
belongs_to :user
validates :provider, :uid, presence: true
validates :provider, :uid, :email, presence: true
# Searches for openid based on provider and uid.
# Returns found openid or a new openid.