require 'rails_helper' RSpec.describe Availability, type: :model do describe 'create' do it 'is success with start at, end at and type' it 'is invalid without start at' it 'is invalid without end at' it 'is invalid without type' it 'is invalid type isnt in [event]' end it 'should get a title' it 'should set a number of places' end