Welcome to mirror list, hosted at ThFree Co, Russian Federation.

resource_event_spec.rb « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62bd5314b69320e8f304f3526f98be9aa6d303d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ResourceEvent, feature_category: :team_planning, type: :model do
  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