debian-mirror-gitlab/spec/workers/create_evidence_worker_spec.rb

12 lines
275 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe CreateEvidenceWorker do
let!(:release) { create(:release) }
2020-04-22 19:07:51 +05:30
it 'creates a new Evidence record' do
expect { described_class.new.perform(release.id) }.to change(Releases::Evidence, :count).by(1)
2019-12-21 20:55:43 +05:30
end
end