debian-mirror-gitlab/spec/models/resource_event_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
616 B
Ruby
Raw Normal View History

2023-03-17 16:20:25 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-04-23 21:23:45 +05:30
RSpec.describe ResourceEvent, feature_category: :team_planning, type: :model do
2023-03-17 16:20:25 +05:30
let(:dummy_resource_label_event_class) do
Class.new(ResourceEvent) do
self.table_name = 'resource_label_events'
end
end
it 'raises error on not implemented `issuable` method' do
expect { dummy_resource_label_event_class.new.issuable }.to raise_error(NoMethodError)
end
it 'raises error on not implemented `synthetic_note_class` method' do
expect { dummy_resource_label_event_class.new.synthetic_note_class }.to raise_error(NoMethodError)
end
end