blob: e21c40c14fa9d0dc4e1cd4750065d69c670b9893 (
plain) (
tree)
|
|
require 'rails_helper'
RSpec.describe Organisation, type: :model do
subject = Organisation.new(name: "Hollander Property")
describe "validations" do
it "is invalid if no name given" do
subject.name = nil
expect(subject).to_not be_valid
end
it "is invalid with a name longer than 25 chars" do
subject.name = "a" * 26
expect(subject).to_not be_valid
end
end
end
|