* 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
9 lines
211 B
Ruby
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
|