Sha256: 938e9653b9fd25070a6deb31ca79213439343e07611e0227138ee89c50fd0541

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

require 'rails_helper'

module MnoEnterprise
  RSpec.describe EventLoggerJob, type: :job do
    it 'dispatch the notification to the event logger' do
      args = ['app_destroy', 1, 'App destroyed', 'Xero', build(:app_instance)]
      expect(EventLogger).to receive(:send_info).with(*args)
      EventLoggerJob.perform_now(:info, *args)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 spec/jobs/mno_enterprise/event_logger_job_spec.rb
mno-enterprise-api-3.3.3 spec/jobs/mno_enterprise/event_logger_job_spec.rb
mno-enterprise-api-3.3.2 spec/jobs/mno_enterprise/event_logger_job_spec.rb
mno-enterprise-api-3.2.1 spec/jobs/mno_enterprise/event_logger_job_spec.rb
mno-enterprise-api-3.3.1 spec/jobs/mno_enterprise/event_logger_job_spec.rb
mno-enterprise-api-3.3.0 spec/jobs/mno_enterprise/event_logger_job_spec.rb
mno-enterprise-api-3.2.0 spec/jobs/mno_enterprise/event_logger_job_spec.rb