debian-mirror-gitlab/spec/initializers/remove_active_job_execute_callback_spec.rb
2020-11-24 15:15:51 +05:30

9 lines
250 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'ActiveJob execute callback' do
it 'is removed in test environment' do
expect(ActiveJob::Callbacks.singleton_class.__callbacks[:execute].send(:chain).size).to eq(0)
end
end