docbrown/spec/models/email_message_spec.rb
rhymes 5ba8c44b05
[deploy] Add missing foreign keys to ahoy_messages and articles (#10321)
* Add FK between ahoy_messages and feedback_messages

* Add FKs between articles.second_user_id, articles.third_user_id and users

* Fix associations and specs

* Add more validations

* Remove FKs to articles.second_user_id and .third_user_id as they are about to be removed
2020-09-16 19:47:03 +02:00

9 lines
211 B
Ruby

require "rails_helper"
RSpec.describe EmailMessage, type: :model do
describe "validations" do
subject { create(:email_message) }
it { is_expected.to belong_to(:feedback_message).optional }
end
end