Sponsor dashboard added, with sponsor component for splash page
This commit is contained in:
parent
643b8b173a
commit
ea119a8158
36 changed files with 549 additions and 12 deletions
21
spec/models/organization_spec.rb
Normal file
21
spec/models/organization_spec.rb
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Organization do
|
||||
describe 'validations' do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:organization)).to be_valid
|
||||
end
|
||||
|
||||
it 'is not valid without a title' do
|
||||
should validate_presence_of(:title)
|
||||
end
|
||||
|
||||
it 'is not valid without a email id' do
|
||||
should validate_presence_of(:email_id)
|
||||
end
|
||||
|
||||
it 'is not valid with a duplicate email_id' do
|
||||
should validate_uniqueness_of(:email_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue