debian-mirror-gitlab/spec/services/resource_events/change_milestone_service_spec.rb

18 lines
595 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe ResourceEvents::ChangeMilestoneService do
2020-10-24 23:57:45 +05:30
let_it_be(:timebox) { create(:milestone) }
let(:created_at_time) { Time.utc(2019, 12, 30) }
let(:add_timebox_args) { { created_at: created_at_time, old_milestone: nil } }
let(:remove_timebox_args) { { created_at: created_at_time, old_milestone: timebox } }
2020-05-24 23:13:21 +05:30
[:issue, :merge_request].each do |issuable|
2020-10-24 23:57:45 +05:30
it_behaves_like 'timebox(milestone or iteration) resource events creator', ResourceMilestoneEvent do
let_it_be(:resource) { create(issuable) }
2020-05-24 23:13:21 +05:30
end
2020-04-08 14:13:33 +05:30
end
end