require 'rails_helper' RSpec.describe Event, type: :model do it "is invalid without a name" do e = Event.new(name: "") expect(e).to_not be_valid end describe "validations" do it "is invalid without a date" do e = Event.new(date: nil, name: "Sludge") expect(e).to_not be_valid end end end