mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 05:36:07 +10:00
Also: - Get rid of legacy :strict_mode - Get rid of custom :email validator - Add some shared examples to spec emails validation
23 lines
445 B
Ruby
23 lines
445 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: emails
|
|
#
|
|
# id :integer not null, primary key
|
|
# user_id :integer not null
|
|
# email :string(255) not null
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
#
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Email, models: true do
|
|
|
|
describe 'validations' do
|
|
it_behaves_like 'an object with email-formated attributes', :email do
|
|
subject { build(:email) }
|
|
end
|
|
end
|
|
|
|
end
|