blob: adf288afb29256a620370e827940019712efa578 (
plain) (
tree)
|
|
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
|