summaryrefslogtreecommitdiff
path: root/spec/models/error_tracking/error_event_spec.rb
blob: 331661f88cc1ed633ff5c50a7038930811189ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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