# frozen_string_literal: true

require "rails_helper"

describe Eve::LocalSystemsJob do
  it { should be_an(ApplicationJob) }

  it { expect(described_class.queue_name).to eq("default") }

  describe "#perform" do
    before do
      #
      # Eve::LocalSystemsImporter.new.import
      #
      expect(Eve::LocalSystemsImporter).to receive(:new) do
        double.tap do |a|
          expect(a).to receive(:import)
        end
      end
    end

    specify { expect { subject.perform }.not_to raise_error }
  end
end
