Merge pull request #200 from gopesht/add_sponsorship_levels
Adds sponsorship levels
This commit is contained in:
commit
411deb4c65
13 changed files with 159 additions and 10 deletions
14
spec/models/sponsorship_level_spec.rb
Normal file
14
spec/models/sponsorship_level_spec.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe SponsorshipLevel do
|
||||
describe 'validations' do
|
||||
|
||||
it 'has a valid factory' do
|
||||
expect(build(:sponsorship_level)).to be_valid
|
||||
end
|
||||
|
||||
it 'is not valid without a title' do
|
||||
should validate_presence_of(:title)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue