https://github.com/oksanka-blaze/pm/blob/master/spec/models/project_spec.rb

как тут should validate