* Lock erb_lint * Refactor moderation spec * Remove & replace RequestSpecHelper * Update uid to sequence * Lower the need for persistence in specs * Update moderation spec * Update shoulda-matchers * Enable backgroundjobs and update commenct spec * Fix fail specs * Update comment's validations * Remove redundent specs * Actually turn off DJ * Apply run_background_jobs_immediately * Remove giveawy specs * Create Identity spec
8 lines
290 B
Ruby
8 lines
290 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe Note, type: :model do
|
|
it { is_expected.to validate_presence_of(:reason) }
|
|
it { is_expected.to validate_presence_of(:content) }
|
|
it { is_expected.to belong_to(:noteable) }
|
|
it { is_expected.to belong_to(:author).class_name("User").optional }
|
|
end
|