debian-mirror-gitlab/spec/models/resource_state_event_spec.rb
2020-08-09 17:41:57 +05:30

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