gitlab-org--gitlab-foss/spec/models/resource_state_event_spec.rb

14 lines
391 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ResourceStateEvent, type: :model do
subject { build(:resource_state_event, issue: issue) }
let(:issue) { create(:issue) }
let(:merge_request) { create(:merge_request) }
it_behaves_like 'a resource event'
it_behaves_like 'a resource event for issues'
it_behaves_like 'a resource event for merge requests'
end