2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2014-06-05 17:51:22 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
|
|
describe Sponsor do
|
|
|
|
|
describe 'validations' do
|
|
|
|
|
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
|