Adds sponsor model

This commit is contained in:
Gopesh Tulsyan 2014-06-05 17:51:22 +05:30
parent 411deb4c65
commit e38a654af1
6 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,17 @@
require 'spec_helper'
describe Sponsor do
describe 'validations' do
it 'has a valid factory' do
expect(build(:sponsor)).to be_valid
end
it 'is not valid without a name' do
should validate_presence_of(:name)
end
it 'is not valid without a website url' do
should validate_presence_of(:website_url)
end
end
end