debian-mirror-gitlab/spec/models/error_tracking/error_event_spec.rb

15 lines
353 B
Ruby
Raw Normal View History

2021-09-30 23:02:18 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ErrorTracking::ErrorEvent, type: :model do
describe 'relationships' do
it { is_expected.to belong_to(:error) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:description) }
it { is_expected.to validate_presence_of(:occurred_at) }
end
end