Sha256: a99e6f3e2160b3a75f0b7f4714567fb770660836a14097ea1c1b9d0a10709fa8
Contents?: true
Size: 830 Bytes
Versions: 5
Compression:
Stored size: 830 Bytes
Contents
# typed: false # frozen_string_literal: true require "test_helper" class UpdateYettoJobTest < ActiveJob::TestCase include Webmocks::Yetto def setup super @update_installation_body = { plug_installation: { credentials: {}, settings: {}, }, } @installation_params = { type: "installation", inbox: { id: @inbox_id, }, organization: { id: @organization_id, }, } @installation_params[:plug_installation] = @update_installation_body[:plug_installation].dup @installation_params[:plug_installation][:id] = @plug_installation_id end test "does nothing if type is not supported" do params = { type: "not_supported", } assert_no_enqueued_jobs do UpdateYettoJob.perform_now(params) end end end
Version data entries
5 entries across 5 versions & 1 rubygems