Sponsor dashboard added, with sponsor component for splash page

This commit is contained in:
Gopesh Tulsyan 2014-05-26 13:51:03 +05:30
parent 643b8b173a
commit ea119a8158
36 changed files with 549 additions and 12 deletions

View 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